通过本文主要向大家介绍了.net后台管理系统,.net后台,.net后台开发,.net后台框架,.net 后台调用js等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
方法1:
C#
Label1.Text = Request.Form["txtName"].ToString();
vb.net
Request.Form("txtName").ToString()
方法2:
C#
System.Collections.Specialized.NameValueCollection nc = new System.Collections.Specialized.NameValueCollection(Request.Form);Label1.Text = nc.GetValues("txtName")[0].ToString();
注: "txtName"为Html控件的"name"属性值
以上代码在Microsoft Visual Studio 2012下调试通过 </div>
C#
Label1.Text = Request.Form["txtName"].ToString();
vb.net
Request.Form("txtName").ToString()
方法2:
C#
System.Collections.Specialized.NameValueCollection nc = new System.Collections.Specialized.NameValueCollection(Request.Form);Label1.Text = nc.GetValues("txtName")[0].ToString();
注: "txtName"为Html控件的"name"属性值
以上代码在Microsoft Visual Studio 2012下调试通过 </div>