C#2005无法获取表单数据
现在有两个文件Login.htm(启动文件),Default.axps,为什么点提交后取到的是空值??代码如下:
Login.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml " >
<head>
<title> 测试Response-Request对象 </title>
</head>
<body>
<form id= "form1 " action= "Default.aspx " method= "Post ">
<table style= "width: 280px; height: 64px ">
<tr>
<td style= "width: 67px ">
用户名 </td>
<td style= "width: 171px ">
<input id= "txtUserName " style= "width: 149px " type= "text " value= "gongxinheng " /> </td>
<td>
</td>
</tr>
<tr>
<td style= "width: 67px ">
密 码 </td>
<td style= "width: 171px ">
<input id= "txtPassWord " style= "width: 149px " type= "password " value= "123 " /> </td>
<td>
</td>
</tr>
<tr>
<td style= "width: 67px ">
</td>
<td style= "width: 171px ">
<input id= "btnSubmit " type= "submit " value= "提交 &quo