reg.aspx
资源名称:WebSite1.rar [点击查看]
上传用户:vtryaojia
上传日期:2020-04-18
资源大小:1214k
文件大小:6k
源码类别:
SCSI/ASPI
开发平台:
Others
- <%@ Page Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" CodeFile="reg.aspx.cs" Inherits="reg" Title="Untitled Page" %>
- <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
- <script language="javascript" type="text/javascript">
- // <!CDATA[
- function TextArea1_load() {
- this.textbox.text="服务条款"
- }
- // ]]>
- </script>
- <asp:Label ID="Label1" runat="server" Font-Size="XX-Large" ForeColor="White" Height="30px"
- 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 />
- <br />
- <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/productsinformation.aspx">首页</asp:HyperLink><br />
- <br />
- <asp:Label ID="Label12" runat="server" BackColor="#FF8000" BorderColor="Gray"
- BorderStyle="None" BorderWidth="1px" ForeColor="White" Height="23px" Text="1.填写信息"
- Width="85px"></asp:Label>
- <asp:Label ID="Label15" runat="server" Text="--->"></asp:Label>
- <asp:Label ID="Label14"
- runat="server" BackColor="WhiteSmoke" BorderColor="Gray" BorderStyle="None" BorderWidth="1px"
- ForeColor="Black" Height="23px" Text="2.注册成功" Width="85px"></asp:Label><br />
- <br />
- <asp:Label ID="Label2" runat="server" Text="用户名" ForeColor="Green"></asp:Label>
- <asp:TextBox ID="UserName" runat="server" Width="128px" BorderStyle="None" MaxLength="16"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" BackColor="#FFFFC0"
- BorderColor="#404040" BorderWidth="1px" ControlToValidate="UserName" ErrorMessage="用户名不能为空"
- ForeColor="OrangeRed"></asp:RequiredFieldValidator>
-
- <br />
- <asp:Label ID="LB1" runat="server" BorderColor="#404040" Font-Size="Smaller" ForeColor="Gray"
- Text="请使用英文字母或数字,4-16个字符之间" Width="318px"></asp:Label><br />
- <br />
- <asp:Label ID="Label3" runat="server" Text="设置密码" ForeColor="Green"></asp:Label>
- <asp:TextBox ID="Password1" runat="server" TextMode="Password" MaxLength="16" ></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" BackColor="#FFFFC0"
- BorderColor="#404040" BorderWidth="1px" ControlToValidate="Password1" ErrorMessage="密码不能为空"
- ForeColor="OrangeRed"></asp:RequiredFieldValidator><br />
- <asp:Label ID="LB2" runat="server" BorderColor="#404040" Font-Size="Smaller" ForeColor="Gray"
- Text="请使用英文字母或数字,4-16个字符之间" Width="318px"></asp:Label><br />
- <br />
- <asp:Label ID="Label6" runat="server" Text="确认密码" ForeColor="Green"></asp:Label>
- <asp:TextBox ID="Password2" runat="server" TextMode="Password" MaxLength="16" ></asp:TextBox>
- <asp:CompareValidator ID="CompareValidator1" runat="server" BackColor="#FFFFC0" BorderColor="#404040"
- BorderWidth="1px" ControlToCompare="Password1" ControlToValidate="Password2"
- ErrorMessage="密码输入不一致" ForeColor="OrangeRed"></asp:CompareValidator><br />
- <asp:Label ID="LB3" runat="server" BorderColor="#404040" Font-Size="Smaller" ForeColor="Gray"
- Text="再输一遍,确保没错" Width="318px"></asp:Label><br />
- <br />
- <asp:Label ID="Label8" runat="server" Text="您的邮箱" ForeColor="Green"></asp:Label>
- <asp:TextBox ID="Email" runat="server"></asp:TextBox>
- <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="邮箱不合法!"
- ValidationExpression="w+([-+.']w+)*@w+([-.]w+)*.w+([-.]w+)*" ControlToValidate="Email" BackColor="#FFFFC0" BorderColor="#404040" BorderWidth="1px" ForeColor="OrangeRed"></asp:RegularExpressionValidator><br />
- <asp:Label ID="LB4" runat="server" BorderColor="#404040" Font-Size="Smaller" ForeColor="Gray"
- Text="用来确认您的身份,本站绝对不公开您的Email" Width="318px"></asp:Label><br />
- <br />
- <asp:Label ID="Label4" runat="server" ForeColor="Green" Text="您的地址"></asp:Label>
-
- <asp:TextBox ID="Address" runat="server"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" BackColor="#FFFFC0"
- BorderColor="#404040" BorderWidth="1px" ControlToValidate="Address" ErrorMessage="地址不能为空"
- ForeColor="OrangeRed"></asp:RequiredFieldValidator><br />
- <asp:Label ID="Label5" runat="server" BorderColor="#404040" Font-Size="Smaller" ForeColor="Gray"
- Text="用于发货,本站绝对不公开您的地址" Width="318px"></asp:Label><br />
- <br />
- <asp:Label ID="Label7" runat="server" ForeColor="Green" Text="您的电话"></asp:Label>
-
- <asp:TextBox ID="Telephone" runat="server"></asp:TextBox>
- <br />
- <asp:Label ID="Label9" runat="server" BorderColor="#404040" Font-Size="Smaller" ForeColor="Gray"
- Text="用于联系,本站绝对不公开您的电话" Width="318px"></asp:Label><br />
- <br />
- <asp:Button ID="regButton" runat="server" Text="同意以下条款并注册" OnClick="regButton_Click" /><br />
- <br />
- <br />
- <textarea id="TextArea1" cols="20" rows="20" onclick="return TextArea1_onclick()"></textarea><br />
- <br />
- <br />
- <br />
- <br />
- <br />
- <br />
- </asp:Content>