小弟以前学JAVA,现在该C# 急问一个关于用户登陆验证的问题.
我是用HTML向ASPX中提交一个用户表单~在ASPX上读取并显示出来。
代码如下:
Login.html
<html xmlns= "http://www.w3.org/1999/xhtml " >
<head>
<title> Index </title>
</head>
<body>
<form action= "Login.aspx " method= "post " runat= "server ">
<table style= "left: 184px; position: relative; top: 32px ">
<tr>
<td style= "width: 54px; height: 30px ">
用户名 </td>
<td style= "width: 181px; height: 30px ">
<input id= "txtUserName " style= "width: 176px; position: relative; height: 32px; left: 0px; top: 0px; " type= "text " /> </td>
</tr>
<tr>
<td style= "width: 54px; height: 30px ">
密 码 </td>
<td style= "width: 181px; height: 30px ">
<input id= "txtUserPwd " style= "width: 176px; position: relative; top: 0px; height: 32px; left: 0px; "
type= "text " /> </td>
</tr>
<tr>
<td colspan= "2 " style= "height: 27px ">
<input id= "Reset " style= "left: 165px; width: 50px; position: relative; top: 0px; height: 30px; "
type= "reset " value= "重置 " onclick= "return Reset1_onclick() " />
&n