62,244
社区成员




<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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>
<script type="text/javascript">
function check()
{
if(form1.TextBox1.value=="")
alert("帐号不能为空!");
if(form1.TextBox2.value=="")
alert("密码不能为空!");
}
</script>
</head>
<body>
<form id="form1" runat="server" >
<table>
<tr>
<td><asp:Label ID="label" runat="server" Text="帐号:"></asp:Label></td>
<td><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label ID="Label1" runat="server" Text="密码:"></asp:Label> </td>
<td><asp:TextBox ID="TextBox2" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td><asp:Button ID="Button1" runat="server" Text="登录" OnClick="check()"/></td>
</tr>
</table>
</form>
</body>
</html>