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 砖头 阅读(195) 评论(0) 编辑 收藏

导航

<2010年12月>
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

公告

昵称:砖头
园龄:6年2个月
粉丝:0
关注:1

搜索

 
 

常用链接

随笔分类

随笔档案

文章分类

最新评论

阅读排行榜

评论排行榜

推荐排行榜