<form action="registerdo.aspx" method="post">
<table border="1">
<tr>
<td>
用户名:
</td>
<td>
<input id="uname" type="text" onblur="check(this.value)" /><div style="display: inline"
id="unamediv">
</div>
</td>
</tr>
<tr>
<td>
密码:
</td>
<td>
<input id="upass" type="password" />
<div style="display: inline">
</div>
</td>
</tr>
<tr>
<td colspan="2">
<input id="Button1" type="button" value="注册" onclick="register()"/>
</td>
</tr>
</table>
</form>这是一个普通的静态页面中的一段代码,大体意思能看明白吧,重点是Form的那个Action的值,这个静态页面的Form表单所提交的路径是个aspx页面,我想请教各位大哥,怎样能在那个aspx页面获得值呢
<table border="1">
<tr>
<td>
用户名:
</td>
<td>
<input id="uname" type="text" onblur="check(this.value)" /><div style="display: inline"
id="unamediv">
</div>
</td>
</tr>
<tr>
<td>
密码:
</td>
<td>
<input id="upass" type="password" />
<div style="display: inline">
</div>
</td>
</tr>
<tr>
<td colspan="2">
<input id="Button1" type="button" value="注册" onclick="register()"/>
</td>
</tr>
</table>
</form>这是一个普通的静态页面中的一段代码,大体意思能看明白吧,重点是Form的那个Action的值,这个静态页面的Form表单所提交的路径是个aspx页面,我想请教各位大哥,怎样能在那个aspx页面获得值呢
解决方案 »
- 关于编辑网站程序的问题?
- 为什么在SQL语句中left方法只能取出前255个字符,如何解决
- 怎样使Response.Redirect("***.asp")转到目标为_top,我用的是框架,在main上用Response.Redirect这个应该怎样写?才能在_top中显示?
- 請問CSDN的[你有新的短訊息]是怎麼做的呢
- 图片上传问题
- 水晶报表问题!高手请帮!
- 登陆验证之问题 送分......100
- 急~~~~~~~~
- 挑战天下搜索控件,WebSearch挑大梁!欢迎提提建议!来者有分!
- 关于存储过程的问题
- MVC2 传值问题
- dev grid控件里的 GridViewDataComboBoxColumn 列取当前选中值
<input name="uname" type="text" onblur="check(this.value)" />
<input id="uname" name="uname" type="text" onblur="check(this.value)" />另一个获取的页面应该写为:
Request.Form["uname"];
后台获取:Request.Form["uname"]
取值:string keyCode=Request["keyCode"];