asp.net后台获取前台html控件的值的方法(转帖)

protected void Button1_Click(object sender, EventArgs e)
{
     System.Collections.Specialized.NameValueCollection nc
= new System.Collections.Specialized.NameValueCollection(Request.Form);
     Response.Write(nc.GetValues(
"txtname")[0].ToString());
}
原文地址:https://www.cnblogs.com/cndsn/p/1895074.html