码迷,mamicode.com
首页 > 其他好文 > 详细

在后台获取Textarea控件的值

时间:2014-10-17 18:31:30      阅读:312      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   os   ar   使用   for   sp   div   

使用Request.Form方法

1.在前台设置name 属性

 <textarea name="Content">hdjfhjdfhdj</textarea>

2.在后台根据name获取值

string s = Request.Form["Content"].ToString();

 

在后台获取Textarea控件的值

标签:style   blog   color   os   ar   使用   for   sp   div   

原文地址:http://www.cnblogs.com/songxia/p/4031642.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!