温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:学习型留言板源码
当前文件:
StudyLeaveWord/Custom/Login.ascx,打开代码结构图
StudyLeaveWord/Custom/Login.ascx,打开代码结构图1<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Login.ascx.cs" Inherits="Custom_Login" %> 2
<script language="javascript" type="text/javascript"> 3
<!-- 4
5
function btnRegister_onclick() { 6
location.href="reg.aspx"; 7
} 8
9
// --> 10
</script> 11
12
<table border="0" cellpadding="1" cellspacing="1" style="width: 300px; height: 207px; border-right: #330066 thin solid; border-bottom: #330066 thin solid; border-top: #330066 thin solid; border-left: #330066 thin solid;"> 13
<tr> 14
<td colspan="2" style="font-weight: bold; font-size: x-large; vertical-align: middle; color: #ffffff; height: 50px; background-color: #33cc66; text-align: center; text-decoration: none"> 15
用户登录</td> 16
</tr> 17
<tr> 18
<td style="vertical-align: middle; width: 80px; text-align: right; height: 20px;"> 19
用户名:</td> 20
<td style="width: 200px; height: 20px; vertical-align: middle; text-align: left;"> 21
<asp:TextBox ID="txtUserName" runat="server" Width="134px"></asp:TextBox> 22
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUserName" 23
Display="Dynamic" ErrorMessage="用户名不能为空!">*</asp:RequiredFieldValidator></td> 24
</tr> 25
<tr style="color: #000000"> 26
<td style="vertical-align: middle; width: 80px; text-align: right; height: 20px;"> 27
密 码:</td> 28
<td style="width: 200px; vertical-align: middle; height: 20px; text-align: left;"> 29
<asp:TextBox ID="txtPassword" runat="server" Width="136px" TextMode="Password"></asp:TextBox> 30
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword" 31
ErrorMessage="密码不能为空!" Width="14px">*</asp:RequiredFieldValidator></td> 32
</tr> 33
<tr> 34
<td style="vertical-align: middle; width: 80px; text-align: right; height: 20px;"> 35
验证码:</td> 36
<td style="width: 200px; height: 20px; vertical-align: middle; text-align: left;"> 37
<asp:TextBox ID="txtTestNum" runat="server" Width="106px"></asp:TextBox> 38
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtTestNum" 39
ErrorMessage="验证码不能为空!" Width="14px">*</asp:RequiredFieldValidator></td> 40
</tr> 41
<tr> 42
<td style="vertical-align: middle; width: 80px; text-align: right; height: 20px;"> 43
</td> 44
<td style="width: 200px; height: 20px; vertical-align: middle; text-align: left;"> 45
</td> 46
</tr> 47
<tr> 48
<td colspan="2" style="vertical-align: middle; height: 25px; text-align: center"> 49
<asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="List" 50
Height="1px" Width="198px" /> 51
52
<asp:Button ID="btnLogin" runat="server" Text="会员登录" Width="62px" /> 53
54
<input id="btnRegister" type="button" value="用户注册" style="width: 61px" language="javascript" onclick="return btnRegister_onclick()" /></td> 55
</tr> 56
</table> 57






}

