<%@ Import Namespace="ASPNET.StarterKit.Portal" %>
<%@ Register TagPrefix="ASPNETPortal" TagName="Banner" Src="~/DesktopPortalBanner.ascx" %>
<%@ Page language="c#" CodeBehind="Register.aspx.cs" AutoEventWireup="false" Inherits="ASPNET.StarterKit.Portal.Register" %>
<HTML>
	<HEAD>
		<%--

   The Register.aspx page is used to enable clients to register a new unique username
   and password with the portal system.  The page contains a single server event
   handler -- RegisterBtn_Click -- that executes in response to the page's Register
   Button being clicked.

   The Register.aspx page uses the UsersDB class to manage the actual account creation.
   Note that the Usernames and passwords are stored within a table in a SQL database.

--%>
		<link rel="stylesheet" href='<%= Global.GetApplicationPath(Request) + "/ASPNETPortal.css" %>' type="text/css">
	</HEAD>
	<body leftmargin="0" bottommargin="0" rightmargin="0" topmargin="0" marginheight="0" marginwidth="0">
		<form runat="server">
			<table width="100%" cellspacing="0" cellpadding="0">
				<tr valign="top">
					<td colspan="2">
						<ASPNETPortal:Banner ShowTabs="false" runat="server" id="Banner1" />
					</td>
				</tr>
				<tr>
					<td>
						<br>
						<table width="98%" cellspacing="0" cellpadding="4" border="0">
							<tr>
								<td width="150">
									&nbsp;
								</td>
								<td width="*">
									<table cellpadding="2" cellspacing="1" border="0">
										<tr>
											<td width="450">
												<table width="100%" cellspacing="0" cellpadding="0">
													<tr>
														<td>
															<span class="Head"> 创建新用户&nbsp; </span>
														</td>
													</tr>
													<tr>
														<td>
															<hr noshade size="1">
														</td>
													</tr>
												</table>
											</td>
										</tr>
										<tr valign="top">
											<td class="Normal">
												名字：&nbsp;
												<br>
												<asp:TextBox size="25" id="Name" runat="server" />
												&nbsp;
												<asp:RequiredFieldValidator ControlToValidate="Name" ErrorMessage="名字不能为空" runat="server" id="RequiredFieldValidator1" />
												<p>
													电子邮件：&nbsp;
													<br>
													<asp:TextBox size="25" id="Email" runat="server" />
													&nbsp;
													<asp:RegularExpressionValidator ControlToValidate="Email" ValidationExpression="[\w\.-]+(\+[\w-]*)?@([\w-]+\.)+[\w-]+"
														Display="Dynamic" ErrorMessage="必须使用有效电子邮件地址" runat="server" id="RegularExpressionValidator1" />
													<asp:RequiredFieldValidator ControlToValidate="Email" ErrorMessage="电子邮件不能为空" runat="server" id="RequiredFieldValidator2" />
												<p>
													Password:
													<br>
													<asp:TextBox size="25" id="Password" TextMode="Password" runat="server" />
													&nbsp;
													<asp:RequiredFieldValidator ControlToValidate="Password" ErrorMessage="口令不能为空" runat="server" id="RequiredFieldValidator3" />
												<p>
													Confirm Password:
													<br>
													<asp:TextBox size="25" id="ConfirmPassword" TextMode="Password" runat="server" />
													&nbsp;
													<asp:RequiredFieldValidator ControlToValidate="ConfirmPassword" Display="Dynamic" ErrorMessage="确认口令不能为空" runat="server"
														id="RequiredFieldValidator4" />
													<asp:CompareValidator ControlToValidate="ConfirmPassword" ControlToCompare="Password" ErrorMessage="口令不相同"
														runat="server" id="CompareValidator1" />
												<p>
													<asp:LinkButton class="CommandButton" Text="Register and Sign In Now" runat="server" id="RegisterBtn">
                                                    注册并登录</asp:LinkButton>
													<br>
													<br>
												<p>
													<asp:Label id="Message" CssClass="NormalRed" runat="server" />
												</p>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
