users_registerform.ascx
来自「一个ASP.NET下的中文内容管理和社区系统」· ASCX 代码 · 共 263 行
ASCX
263 行
<%@ Control %>
<table cellpadding=2>
<tr>
<td colspan="2">
<span class="Form_SubTitle">
Required Information
</span>
</td>
</tr>
<tr>
<td>
<span class="Form_LabelText">
Username:
</span>
</td>
<td>
<asp:TextBox id="txtUsername" CssClass="Form_Field" Runat="Server"/>
<asp:RequiredFieldValidator ControlToValidate="txtUsername" Text="(required)" ErrorMessage="You must enter a username" CssClass="Form_Message" Runat="Server"/>
</td>
</tr>
<tr>
<td>
<span class="Form_LabelText">
Password:
</span>
</td>
<td>
<asp:TextBox id="txtPassword" TextMode="Password" Cssclass="Form_Field" Runat="Server"/>
<asp:RequiredFieldValidator ControlToValidate="txtPassword" Text="(required)" ErrorMessage="You must enter a password" CssClass="Form_Message" Runat="Server"/>
</td>
</tr>
<tr>
<td>
<span class="Form_LabelText">
Password Again:
</span>
</td>
<td>
<asp:TextBox id="txtPasswordAgain" TextMode="Password" CssClass="Form_Field" Runat="Server"/>
<asp:RequiredFieldValidator ControlToValidate="txtPasswordAgain" Display="Dynamic" Text="(required)" CssClass="Form_Message" Runat="Server"/>
<asp:CompareValidator ControlToValidate="txtPasswordAgain" ControlToCompare="txtPassword" Operator="Equal" Type="String" Text="(must match password)" ErrorMessage="Passwords must match" CssClass="Form_Message" Runat="Server"/>
</td>
</tr>
<tr>
<td>
<span class="Form_LabelText">
Email Address:
</span>
</td>
<td>
<asp:TextBox id="txtEmail" Columns="40" CssClass="Form_Field" Runat="Server"/>
<asp:RequiredFieldValidator ControlToValidate="txtEmail" Display="Dynamic" Text="(required)" ErrorMessage="You must enter an email address" CssClass="Form_Message" Runat="Server"/>
<asp:RegularExpressionValidator ControlToValidate="txtEmail" Text="(invalid email)" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ErrorMessage="Invalid email address" CssClass="Form_Message" Runat="Server"/>
</td>
</tr>
<tr>
<td>
<span class="Form_LabelText">
First Name:
</span>
</td>
<td>
<asp:TextBox id="txtFirstName" CssClass="Form_Field" Runat="Server"/>
<asp:RequiredFieldValidator ControlToValidate="txtFirstName" Display="Dynamic" Text="(required)" ErrorMessage="You must enter your first name" CssClass="Form_Message" Runat="Server"/>
</td>
</tr>
<tr>
<td>
<span class="Form_LabelText">
Last Name:
</span>
</td>
<td>
<asp:TextBox id="txtLastName" CssClass="Form_Field" Runat="Server"/>
<asp:RequiredFieldValidator ControlToValidate="txtLastName" Display="Dynamic" Text="(required)" ErrorMessage="You must enter a last name" CssClass="Form_Message" Runat="Server"/>
</td>
</tr>
<tr>
<td>
<span class="Form_LabelText">
Timezone:
</span>
</td>
<td>
<asp:dropdownlist id="dropTimezone" CssClass="Form_List" runat="server">
<asp:listitem Text="Hawaii (GMT -10)" Value="-10" />
<asp:listitem Text="Alaska (GMT -9)" Value="-9" />
<asp:listitem Text="Pacific Time (GMT -8)" Value="-8" SELECTED/>
<asp:listitem Text="Mountain Time (GMT -7)" Value="-7" />
<asp:listitem Text="Central Time (GMT -6)" Value="-6" />
<asp:listitem Text="Eastern Time (GMT -5)" Value="-5" />
<asp:listitem Text="Atlantic Time (GMT -4)" Value="-4" />
<asp:listitem Text="Brasilia Time (GMT -3)" Value="-3" />
<asp:listitem Text="Greenwich Mean Time (GMT +0)" Value="0" />
<asp:listitem Text="Central Europe Time (GMT +1)" Value="1" />
<asp:listitem Text="Eastern Europe Time (GMT +2)" Value="2" />
<asp:listitem Text="Middle Eastern Time (GMT +3)" Value="3" />
<asp:listitem Text="Abu Dhabi Time (GMT +4)" Value="4" />
<asp:listitem Text="Indian Time (GMT +5)" Value="5" />
<asp:listitem Text="Eastern China Time (GMT +8)" Value="8" />
<asp:listitem Text="Japan Time (GMT +9)" Value="9" />
<asp:listitem Text="Australian Time (GMT +10)" Value="10" />
<asp:listitem Text="Pacific Rim Time (GMT +11)" Value="11" />
<asp:listitem Text="New Zealand Time (GMT +12)" Value="12" />
</asp:dropdownlist>
</td>
</tr>
<tr>
<td colspan="2">
<span class="Form_SubTitle">
Contact Information
</span>
</td>
</tr>
<tr>
<td>
<span class="Form_LabelText">
MSN:
</span>
</td>
<td>
<asp:TextBox id="txtMSN" CssClass="Form_Field" Runat="Server"/>
</td>
</tr>
<tr>
<td>
<span class="Form_LabelText">
Yahoo:
</span>
</td>
<td>
<asp:TextBox id="txtYahoo" CssClass="Form_Field" Runat="Server"/>
</td>
</tr>
<tr>
<td>
<span class="Form_LabelText">
AIM:
</span>
</td>
<td>
<asp:TextBox id="txtAIM" CssClass="Form_Field" Runat="Server"/>
</td>
</tr>
<tr>
<td>
<span class="Form_LabelText">
ICQ:
</span>
</td>
<td>
<asp:TextBox id="txtICQ" CssClass="Form_Field" Runat="Server"/>
</td>
</tr>
<tr>
<td>
<span class="Form_LabelText">
Website:
</span>
</td>
<td>
<asp:TextBox id="txtUrl" CssClass="Form_Field" Runat="Server"/>
<asp:RegularExpressionValidator ControlToValidate="txtUrl" Text="(must be valid URL)" ValidationExpression="http://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?" runat="Server"/>
</td>
</tr>
<tr>
<td>
<span class="Form_LabelText">
Public Email:
</span>
</td>
<td>
<asp:TextBox id="txtFakeEmail" Columns="40" CssClass="Form_Field" Runat="Server"/>
<asp:RegularExpressionValidator ControlToValidate="txtFakeEmail" Text="(invalid email)" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Runat="Server"/>
</td>
</tr>
<tr>
<td colspan="2">
<span class="Form_SubTitle">
<b>
Optional Information
</b>
</span>
</td>
</tr>
<tr>
<td>
<span class="Form_LabelText">
Occupation:
</span>
</td>
<td>
<asp:TextBox id="txtOccupation" CssClass="Form_Field" Runat="Server"/>
</td>
</tr>
<tr>
<td>
<span class="Form_LabelText">
Location:
</span>
</td>
<td>
<asp:TextBox id="txtLocation" CssClass="Form_Field" Runat="Server"/>
</td>
</tr>
<tr>
<td>
<span class="Form_LabelText">
Interests:
</span>
</td>
<td>
<asp:TextBox id="txtInterests" CssClass="Form_Field" Runat="Server"/>
</td>
</tr>
<tr>
<td colspan="2">
<span class="Form_SubTitle">
<b>
Email Options
</b>
</span>
</td>
</tr>
<tr>
<td>
<span class="Form_LabelText">
Newsletter:
</span>
</td>
<td>
<asp:Checkbox id="chkEnableNewsletter" CssClass="Form_Field" Checked="true" Runat="Server" Text="Receive Newsletter"/>
</td>
</tr>
<tr>
<td valign="top">
<span class="Form_LabelText">
Email Notifications:
</span>
</td>
<td>
<asp:Checkbox id="chkEnableNotifications" CssClass="Form_Field" Checked="true" Runat="Server" Text="Receive Email Notifications"/>
<br><span class="Form_Field">
(This option controls Global Email Notification. If this option is enabled,
you will see Email Notification checkboxes in each section of this community.
Select checkboxes in desired sections to receive an Email Notification
when information is added.)
</span>
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?