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());
}

posted on 2010-12-03 03:19  砖头  阅读(518)  评论(0编辑  收藏  举报

导航