1. 首页
  2. 数据库
  3. 其它
  4. .net后台获取html控件值的2种方法

.net后台获取html控件值的2种方法

上传者: 2021-01-10 22:07:24上传 PDF文件 17.22KB 热度 8次
方法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(); 注: “txtNam
下载地址
用户评论