reg.aspx
上传用户:vtryaojia
上传日期:2020-04-18
资源大小:1214k
文件大小:6k
源码类别:

SCSI/ASPI

开发平台:

Others

  1. <%@ Page Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" CodeFile="reg.aspx.cs" Inherits="reg" Title="Untitled Page" %>
  2. <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  3. <script language="javascript" type="text/javascript">
  4. // <!CDATA[
  5. function TextArea1_load() {
  6. this.textbox.text="服务条款" 
  7. }
  8. // ]]>
  9. </script>
  10.     <asp:Label ID="Label1" runat="server" Font-Size="XX-Large" ForeColor="White" Height="30px"
  11.         Text="用户注册" BackColor="BlueViolet" BorderColor="DarkSlateBlue" Font-Bold="True" Font-Italic="False" Font-Names="Arial" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Width="403px"></asp:Label><br />
  12.     <br />
  13.     <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/productsinformation.aspx">首页</asp:HyperLink><br />
  14.     <br />
  15.     &nbsp;<asp:Label ID="Label12" runat="server" BackColor="#FF8000" BorderColor="Gray"
  16.         BorderStyle="None" BorderWidth="1px" ForeColor="White" Height="23px" Text="1.填写信息"
  17.         Width="85px"></asp:Label>
  18.     <asp:Label ID="Label15" runat="server" Text="--->"></asp:Label>&nbsp;
  19.     <asp:Label ID="Label14"
  20.         runat="server" BackColor="WhiteSmoke" BorderColor="Gray" BorderStyle="None" BorderWidth="1px"
  21.         ForeColor="Black" Height="23px" Text="2.注册成功" Width="85px"></asp:Label><br />
  22.     <br />
  23.     
  24.     <asp:Label ID="Label2" runat="server" Text="用户名" ForeColor="Green"></asp:Label>&nbsp;&nbsp;
  25.     <asp:TextBox ID="UserName" runat="server" Width="128px" BorderStyle="None"  MaxLength="16"></asp:TextBox>&nbsp;
  26.     <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" BackColor="#FFFFC0"
  27.         BorderColor="#404040" BorderWidth="1px" ControlToValidate="UserName" ErrorMessage="用户名不能为空"
  28.         ForeColor="OrangeRed"></asp:RequiredFieldValidator>
  29.     &nbsp;&nbsp;
  30.     <br />
  31.     <asp:Label ID="LB1" runat="server" BorderColor="#404040" Font-Size="Smaller" ForeColor="Gray"
  32.         Text="请使用英文字母或数字,4-16个字符之间" Width="318px"></asp:Label><br />
  33.     <br />
  34.     <asp:Label ID="Label3" runat="server" Text="设置密码" ForeColor="Green"></asp:Label>&nbsp;&nbsp;
  35.     <asp:TextBox ID="Password1" runat="server" TextMode="Password" MaxLength="16" ></asp:TextBox>
  36.     <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" BackColor="#FFFFC0"
  37.         BorderColor="#404040" BorderWidth="1px" ControlToValidate="Password1" ErrorMessage="密码不能为空"
  38.         ForeColor="OrangeRed"></asp:RequiredFieldValidator><br />
  39.     <asp:Label ID="LB2" runat="server" BorderColor="#404040" Font-Size="Smaller" ForeColor="Gray"
  40.         Text="请使用英文字母或数字,4-16个字符之间" Width="318px"></asp:Label><br />
  41.     <br />
  42.     <asp:Label ID="Label6" runat="server" Text="确认密码" ForeColor="Green"></asp:Label>&nbsp;&nbsp;
  43.     <asp:TextBox ID="Password2" runat="server" TextMode="Password" MaxLength="16" ></asp:TextBox>
  44.     <asp:CompareValidator ID="CompareValidator1" runat="server" BackColor="#FFFFC0" BorderColor="#404040"
  45.         BorderWidth="1px" ControlToCompare="Password1" ControlToValidate="Password2"
  46.         ErrorMessage="密码输入不一致" ForeColor="OrangeRed"></asp:CompareValidator><br />
  47.     <asp:Label ID="LB3" runat="server" BorderColor="#404040" Font-Size="Smaller" ForeColor="Gray"
  48.         Text="再输一遍,确保没错" Width="318px"></asp:Label><br />
  49.     <br />
  50.     <asp:Label ID="Label8" runat="server" Text="您的邮箱" ForeColor="Green"></asp:Label>&nbsp;&nbsp;
  51.     <asp:TextBox ID="Email" runat="server"></asp:TextBox>
  52.     <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="邮箱不合法!"
  53.         ValidationExpression="w+([-+.']w+)*@w+([-.]w+)*.w+([-.]w+)*" ControlToValidate="Email" BackColor="#FFFFC0" BorderColor="#404040" BorderWidth="1px" ForeColor="OrangeRed"></asp:RegularExpressionValidator><br />
  54.     <asp:Label ID="LB4" runat="server" BorderColor="#404040" Font-Size="Smaller" ForeColor="Gray"
  55.         Text="用来确认您的身份,本站绝对不公开您的Email" Width="318px"></asp:Label><br />
  56.     <br />
  57.     <asp:Label ID="Label4" runat="server" ForeColor="Green" Text="您的地址"></asp:Label>
  58.     &nbsp;
  59.     <asp:TextBox ID="Address" runat="server"></asp:TextBox>
  60.     <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" BackColor="#FFFFC0"
  61.         BorderColor="#404040" BorderWidth="1px" ControlToValidate="Address" ErrorMessage="地址不能为空"
  62.         ForeColor="OrangeRed"></asp:RequiredFieldValidator><br />
  63.     <asp:Label ID="Label5" runat="server" BorderColor="#404040" Font-Size="Smaller" ForeColor="Gray"
  64.         Text="用于发货,本站绝对不公开您的地址" Width="318px"></asp:Label><br />
  65.     <br />
  66.     <asp:Label ID="Label7" runat="server" ForeColor="Green" Text="您的电话"></asp:Label>
  67.     &nbsp;
  68.     <asp:TextBox ID="Telephone" runat="server"></asp:TextBox>
  69.     <br />
  70.     <asp:Label ID="Label9" runat="server" BorderColor="#404040" Font-Size="Smaller" ForeColor="Gray"
  71.         Text="用于联系,本站绝对不公开您的电话" Width="318px"></asp:Label><br />
  72.     <br />
  73.     <asp:Button ID="regButton" runat="server" Text="同意以下条款并注册" OnClick="regButton_Click" /><br />
  74.     <br />
  75.     <br />
  76.     <textarea id="TextArea1" cols="20" rows="20" onclick="return TextArea1_onclick()"></textarea><br />
  77.     <br />
  78.     <br />
  79.     <br />
  80.     <br />
  81.     <br />
  82.     <br />
  83. </asp:Content>