经常需要在后台取html控件的值,说明一下。
其实并不需要runat="server",只需要加name="s1"就可以了,后台会识别name属性。
<select name="s1" id="s1" ><option selected="selected">赈灾</option></select>
VB:
usr.usercountry = Request.Form("s1")
同理,input 等HTML控件也可以.
经常需要在后台取html控件的值,说明一下。
其实并不需要runat="server",只需要加name="s1"就可以了,后台会识别name属性。
<select name="s1" id="s1" ><option selected="selected">赈灾</option></select>
VB:
usr.usercountry = Request.Form("s1")
同理,input 等HTML控件也可以.
上一篇:Web.config详解 + asp.net优化方法
下一篇:数据格式化
1.比较Asp.net 的一个强大的功能就是ViewState, 但是这也成为很多人诟病的地方,我们先来看一个实例ViewState其中一个特性就是保存页面的状态,下面我
[代码] Read More
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M