CreatUser.aspx
上传用户:bhp852
上传日期:2022-07-12
资源大小:22k
文件大小:6k
源码类别:

.net编程

开发平台:

Visual Basic

  1. <%@ Page Language="VB" AutoEventWireup="false" CodeFile="CreatUser.aspx.vb" Inherits="reg" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.     <title>用户注册</title>
  6. </head>
  7. <body>
  8.     <form id="form1" runat="server">
  9.         <asp:Panel ID="Panel10" runat="server" Height="64px" Style="left: 224px; position: relative;
  10.             top: 0px" Visible="False" Width="168px" BackColor="White">
  11.             <asp:Label ID="Label6" runat="server" Font-Size="X-Large" Height="32px" Style="position: relative"
  12.                 Text="恭喜您,注册成功!" Width="184px"></asp:Label>
  13.             <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Default.aspx" Style="left: 120px;
  14.                 position: relative; top: 8px">返回登录</asp:HyperLink></asp:Panel>
  15.         <asp:Panel ID="Panel1" runat="server" BackColor="#00C0C0" BorderStyle="Double" Height="208px"
  16.             Style="left: 136px; position: relative; top: 8px" Width="324px">
  17.             <asp:Panel ID="Panel2" runat="server" BackColor="Teal" BorderStyle="Ridge" Height="24px"
  18.                 Style="left: 0px; position: relative; top: 0px" Width="316px">
  19.                 <asp:Label ID="Label7" runat="server" Height="16px" Style="left: 127px; position: relative;
  20.                     top: 2px" Text="用户注册" Width="72px"></asp:Label></asp:Panel>
  21.             <asp:Panel ID="Panel3" runat="server" BorderStyle="None" Height="24px" Style="left: 0px;
  22.                 position: relative; top: 0px" Width="312px">
  23.                 <asp:Label ID="Label1" runat="server" BorderStyle="None" Height="24px" Style="position: relative"
  24.                     Text="请输入您的用户名:" Width="111px" Font-Size="Smaller"></asp:Label>
  25.                 <asp:TextBox ID="TextBox1" runat="server" Style="left: 3px; position: relative" Width="152px"></asp:TextBox>
  26.                   <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="TextBox1"
  27.                   ErrorMessage="必须填写“用户名”。" >*</asp:RequiredFieldValidator>
  28.                   <asp:RegularExpressionValidator ID="RegularExpressionValidator" runat="server" ErrorMessage="请检查输入格式。" 
  29.                   ControlToValidate="TextBox1" ValidationExpression="w+([-+.]w+)*" style="position: relative" >*</asp:RegularExpressionValidator></asp:Panel>
  30.             <asp:Panel ID="Panel4" runat="server" Height="24px" Style="left: 0px; position: relative;
  31.                 top: 0px" Width="288px">
  32.                 <asp:Label ID="Label2" runat="server" BorderStyle="None" Height="24px" Style="position: relative"
  33.                     Text="请输入您的密码:" Width="111px" Font-Size="Smaller"></asp:Label>
  34.                 <asp:TextBox ID="TextBox2" runat="server" Style="left: 3px; position: relative" Width="152px" TextMode="Password"></asp:TextBox>
  35.                                      <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="TextBox2"
  36.                                         ErrorMessage="必须填写“密码”。" >*</asp:RequiredFieldValidator></asp:Panel>
  37.             <asp:Panel ID="Panel5" runat="server" Height="24px" Style="left: 0px; position: relative;
  38.                 top: 0px" Width="288px">
  39.                 <asp:Label ID="Label3" runat="server" BorderStyle="None" Height="24px" Style="position: relative"
  40.                     Text="确认密码:" Width="111px" Font-Size="Smaller"></asp:Label>
  41.                 <asp:TextBox ID="TextBox3" runat="server" Style="left: 3px; position: relative" Width="152px" TextMode="Password"></asp:TextBox>
  42.                 <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="TextBox3"
  43.                                         ErrorMessage="必须填写“确认密码”。">*</asp:RequiredFieldValidator></asp:Panel>
  44.             <asp:Panel ID="Panel6" runat="server" Height="24px" Style="position: relative" Width="288px">
  45.                 <asp:Label ID="Label4" runat="server" BorderStyle="None" Height="24px" Style="position: relative"
  46.                     Text="请输入您的姓名:" Width="111px" Font-Size="Smaller"></asp:Label>
  47.                 <asp:TextBox ID="TextBox4" runat="server" Style="left: 3px; position: relative" Width="152px"></asp:TextBox>
  48.                 <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="TextBox4"
  49.                                         ErrorMessage="必须填写“真实姓名”。" >*</asp:RequiredFieldValidator></asp:Panel>
  50.             <asp:Panel ID="Panel7" runat="server" Height="24px" Style="position: relative" Width="288px">
  51.                 <asp:Label ID="Label5" runat="server" BorderStyle="None" Height="24px" Style="position: relative"
  52.                     Text="请输入您工作单位:" Width="111px" Font-Size="Smaller"></asp:Label>
  53.                 <asp:TextBox ID="TextBox5" runat="server" Style="left: 3px; position: relative" Width="152px"></asp:TextBox>
  54.                 <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox5"
  55.                                         ErrorMessage="必须填写“地址”。" >*</asp:RequiredFieldValidator></asp:Panel>
  56.             <asp:Panel ID="Panel8" runat="server" Height="8px" Style="position: relative" Width="288px">
  57.                 <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="TextBox2"
  58.                     ControlToValidate="TextBox3" Display="Dynamic" ErrorMessage="“密码”和“确认密码”不同,请重新输入!"
  59.                     Style="position: relative; left: 16px; top: 0px;" ValidationGroup="CreateUserWizard1" Font-Size="Smaller"></asp:CompareValidator></asp:Panel>
  60.             <asp:Panel ID="Panel9" runat="server" Height="8px" Style="position: relative; left: 0px; top: 0px;" Width="288px">
  61.                 &nbsp; &nbsp; &nbsp; &nbsp; 
  62.                 <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
  63.                 &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
  64.             </asp:Panel>
  65.             <asp:Button ID="Button1" runat="server" Style="left: 239px; position: relative; top: 0px"
  66.                 Text="创建用户" Height="23px" /></asp:Panel>
  67.     </form>
  68. </body>
  69. </html>