<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="User_Login" %>
<!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 runat="server">
<title>用户登陆</title>
<link href="/images/style.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function CheckForm()
{
if(document.form1.txtUserLoginName.value.length<5)
{
alert("用户名不可少于5个字符");
return false;
}
if(document.form1.txtPassword.value.length<6)
{
alert("密码不可少于6个字符");
return false;
}
}
</script>
</head>
<body >
<form runat="server" id="form1" >
<div>
<table class="maintable" cellspacing="1" align="center" style=" 400px">
<tr>
<td class="title" colspan="3">■用户登陆</td>
</tr>
<tr><td class="left" style="100px">用户名:</td><td style="100px"> <input name="txtUserLoginName" type="text" /></td></tr>
<tr><td class="left">密码:</td><td ><input type="password" name="txtPassword" /></td></tr>
<tr><td class="left" style="height: 24px"> </td><td style="height: 24px"> <asp:Button ID="btnSubmit" runat="server" CssClass="button" OnClientClick=" return CheckForm()" OnClick="btnSubmit_Click" Text="登 陆" /></td></tr>
</table>
</div>
</form>
</body>
</html>