?? userregister.aspx
字號:
?<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserRegister.aspx.cs" Inherits="FrontDesk_Login_UserRegister" %>
<%@ Register Src="BBSFooter.ascx" TagName="BBSFooter" TagPrefix="uc1" %>
<%@ Register Src="BBSHeader.ascx" TagName="BBSHeader" TagPrefix="uc3" %>
<!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>
</head>
<body>
<form id="form1" runat="server">
<div>
<table align="center" style="width: 755px; height: 138px;" cellpadding="0" cellspacing="0">
<tr>
<td style="text-align: center; width: 755px; height: 138px;">
<uc3:BBSHeader ID="BBSHeader1" runat="server" />
</td>
</tr>
</table>
<table style="width: 755px;" align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 755px; background-image: url(../../Image/注冊背景圖.jpg); height: 400px; text-align: center;">
<asp:Label ID="Label2" runat="server" Font-Size="9pt" ForeColor="Red" Text="新用戶注冊"
Width="65px"></asp:Label>
<table align="center" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 189px; text-align: center">
</td>
<td style="width: 94px; text-align: center;">
<asp:Label ID="labUserID" runat="server" Text="用戶ID" Font-Size="9pt" Width="66px"></asp:Label></td>
<td style="width: 225px; text-align: left;">
<asp:TextBox ID="txtUserID" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox>
<asp:Button ID="btnTest" runat="server" Font-Size="9pt" OnClick="btnTest_Click" Text="檢測用戶ID" CausesValidation="False" /></td>
<td style="width: 149px; height: 2px;">
<asp:Label ID="Label1" runat="server" Font-Size="9pt" ForeColor="#FF0066" Text="(請輸入1-10位有效數字)" Width="142px"></asp:Label></td>
</tr>
<tr>
<td style="width: 189px; text-align: center">
</td>
<td style="width: 94px; text-align: center;">
<asp:Label ID="labLoginName" runat="server" Text="用戶登錄名" Font-Size="9pt" Width="66px"></asp:Label></td>
<td style="width: 225px; text-align: left;">
<asp:TextBox ID="txtLoginName" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox></td>
<td style="width: 149px; height: 25px;">
<asp:RequiredFieldValidator ID="rfvLoginName" runat="server" ControlToValidate="txtLoginName" Font-Size="9pt" Height="1px" Width="117px">用戶登錄名不能為空</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 189px; text-align: center">
</td>
<td style="width: 94px; text-align: center;">
<asp:Label ID="labSex" runat="server" Text="性別" Font-Size="9pt" Width="27px"></asp:Label></td>
<td style="width: 225px; text-align: left;">
<asp:DropDownList ID="ddlSex" runat="server" Width="127px" Font-Size="9pt">
<asp:ListItem>男</asp:ListItem>
<asp:ListItem>女</asp:ListItem>
</asp:DropDownList></td>
<td style="width: 149px">
</td>
</tr>
<tr>
<td style="width: 189px; text-align: center">
</td>
<td style="width: 94px; text-align: center;">
<asp:Label ID="labPwd" runat="server" Text="密碼" Font-Size="9pt" Width="27px"></asp:Label></td>
<td style="width: 225px; text-align: left;">
<asp:TextBox ID="txtPwd" runat="server" Font-Size="9pt" TextMode="Password" Width="123px"></asp:TextBox></td>
<td style="width: 149px">
<asp:RequiredFieldValidator ID="rfvPwd" runat="server" ControlToValidate="txtPwd" Font-Size="9pt" Width="104px">用戶密碼不能為空</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 189px; height: 23px; text-align: center">
</td>
<td style="width: 94px; text-align: center; height: 23px;">
<asp:Label ID="labSecPwd" runat="server" Text="重復密碼" Font-Size="9pt" Width="52px"></asp:Label></td>
<td style="width: 225px; text-align: left;">
<asp:TextBox ID="txtSecPwd" runat="server" Font-Size="9pt" TextMode="Password" Width="123px"></asp:TextBox></td>
<td style="width: 149px; height: 23px;">
<asp:CompareValidator ID="ccvPwd" runat="server"
Width="134px" ControlToCompare="txtPwd" ControlToValidate="txtSecPwd" Font-Size="9pt">用戶輸入的密碼必須一致</asp:CompareValidator></td>
</tr>
<tr>
<td style="width: 189px; text-align: center">
</td>
<td style="width: 94px; text-align: center;">
<asp:Label ID="labTName" runat="server" Text="真實姓名" Font-Size="9pt" Width="52px"></asp:Label></td>
<td style="width: 225px; text-align: left;">
<asp:TextBox ID="txtTName" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox></td>
<td style="width: 149px">
</td>
</tr>
<tr>
<td style="width: 189px; text-align: center">
</td>
<td style="width: 94px; text-align: center;">
<asp:Label ID="labQuePwd" runat="server" Text="密碼問題" Font-Size="9pt" Width="52px"></asp:Label></td>
<td style="width: 225px; text-align: left;">
<asp:TextBox ID="txtQuePwd" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox></td>
<td style="width: 149px">
<asp:RequiredFieldValidator ID="rfvQuePwd" runat="server" ControlToValidate="txtQuePwd" Font-Size="9pt" Width="136px">用戶必須輸入密碼問題,以防造成不必要的損失</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 189px; text-align: center">
</td>
<td style="width: 94px; text-align: center;">
<asp:Label ID="labAnsPwd" runat="server" Text="密碼提示答案" Font-Size="9pt" Width="72px"></asp:Label></td>
<td style="width: 225px; text-align: left;">
<asp:TextBox ID="txtAnsPwd" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox></td>
<td style="width: 149px">
<asp:RequiredFieldValidator ID="rfvAnsPwd" runat="server" ControlToValidate="txtAnsPwd" Font-Size="9pt" Width="135px">用戶必須輸入密碼問題的提示答案,以防造成不必要的損失</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 189px; text-align: center">
</td>
<td style="width: 94px; text-align: center;">
<asp:Label ID="labTel" runat="server" Text="電話" Font-Size="9pt" Width="28px"></asp:Label></td>
<td style="width: 225px; text-align: left;">
<asp:TextBox ID="txtTel" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox></td>
<td style="width: 149px">
</td>
</tr>
<tr>
<td style="width: 189px; text-align: center">
</td>
<td style="width: 94px; text-align: center;">
<asp:Label ID="labEmail" runat="server" Text="Email地址" Font-Size="9pt" Width="57px"></asp:Label></td>
<td style="width: 225px; text-align: left;">
<asp:TextBox ID="txtEmail" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox></td>
<td style="width: 149px">
<asp:RegularExpressionValidator ID="revEmail" runat="server" ControlToValidate="txtEmail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Font-Size="9pt" Width="132px">您輸入的Email地址格式不正確,請重新輸入</asp:RegularExpressionValidator></td>
</tr>
<tr>
<td style="width: 189px; text-align: center">
</td>
<td style="width: 94px; text-align: center;">
<asp:Label ID="labAddress" runat="server" Text="住址" Font-Size="9pt" Width="27px"></asp:Label></td>
<td style="width: 225px; text-align: left;">
<asp:TextBox ID="txtAddress" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox></td>
<td style="width: 149px">
</td>
</tr>
<tr>
<td style="width: 189px; text-align: center">
</td>
<td style="width: 94px; text-align: center;">
<asp:Label ID="labPostCode" runat="server" Text="郵編" Font-Size="9pt" Width="27px"></asp:Label></td>
<td style="width: 225px; text-align: left;">
<asp:TextBox ID="txtPostCode" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox></td>
<td style="width: 149px">
<asp:RegularExpressionValidator ID="revPostCode" runat="server" ControlToValidate="txtPostCode" ValidationExpression="\d{6}" Font-Size="9pt" Width="134px">您的郵編輸入有誤</asp:RegularExpressionValidator></td>
</tr>
<tr>
<td style="width: 189px; text-align: center; height: 23px;">
</td>
<td style="width: 94px; text-align: center; height: 23px;">
<asp:Label ID="labQQ" runat="server" Text="QQ號" Font-Size="9pt" Width="37px"></asp:Label></td>
<td style="width: 225px; text-align: left; height: 23px;">
<asp:TextBox ID="txtQQ" runat="server" Font-Size="9pt" Width="123px"></asp:TextBox></td>
<td style="width: 149px; height: 23px;">
</td>
</tr>
<tr>
<td style="width: 189px; text-align: center">
</td>
<td style="width: 94px; text-align: center;"></td>
<td style="width: 225px; text-align: left;">
<asp:Button ID="btnRegister" runat="server" Text="注冊" OnClick="btnRegister_Click" Font-Size="9pt" />
<asp:Button ID="btnCancel" runat="server" Text="重置" OnClick="btnCancel_Click" Font-Size="9pt" CausesValidation="False" /></td>
<td style="width: 149px; height: 24px;">
</td>
</tr>
</table>
</td>
</tr>
</table>
<table align="center" style="width: 755px;" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 755px; height: 74px">
<uc1:BBSFooter ID="BBSFooter1" runat="server" />
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -