WebForm1.aspx
资源名称:Visual.rar [点击查看]
上传用户:yiyuerguo
上传日期:2014-09-27
资源大小:3781k
文件大小:5k
源码类别:
C#编程
开发平台:
Others
- <%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="yanzheng.WebForm1" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
- <HTML>
- <HEAD>
- <title>WebForm1</title>
- <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
- <meta name="CODE_LANGUAGE" Content="C#">
- <meta name="vs_defaultClientScript" content="JavaScript">
- <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
- </HEAD>
- <body MS_POSITIONING="GridLayout">
- <form id="Form1" method="post" runat="server">
- <FONT face="宋体">
- <asp:Label id="Label1" style="Z-INDEX: 101; LEFT: 24px; POSITION: absolute; TOP: 48px" runat="server">用户ID</asp:Label>
- <asp:Label id="Label2" style="Z-INDEX: 102; LEFT: 40px; POSITION: absolute; TOP: 80px" runat="server">密码</asp:Label>
- <asp:Label id="Label3" style="Z-INDEX: 103; LEFT: 8px; POSITION: absolute; TOP: 112px" runat="server">密码确认</asp:Label>
- <asp:Label id="Label4" style="Z-INDEX: 104; LEFT: 32px; POSITION: absolute; TOP: 144px" runat="server">年龄</asp:Label>
- <asp:TextBox id="TextBox1" style="Z-INDEX: 105; LEFT: 88px; POSITION: absolute; TOP: 40px" runat="server"></asp:TextBox>
- <asp:TextBox id="TextBox2" style="Z-INDEX: 106; LEFT: 88px; POSITION: absolute; TOP: 72px" runat="server"
- Width="152px" TextMode="Password"></asp:TextBox>
- <asp:TextBox id="TextBox3" style="Z-INDEX: 107; LEFT: 88px; POSITION: absolute; TOP: 104px" runat="server"
- Width="152px" TextMode="Password"></asp:TextBox>
- <asp:TextBox id="TextBox4" style="Z-INDEX: 108; LEFT: 88px; POSITION: absolute; TOP: 136px" runat="server"></asp:TextBox>
- <asp:Label id="Label5" style="Z-INDEX: 109; LEFT: 32px; POSITION: absolute; TOP: 200px" runat="server">Email</asp:Label>
- <asp:Label id="Label6" style="Z-INDEX: 110; LEFT: 32px; POSITION: absolute; TOP: 232px" runat="server">电话</asp:Label>
- <asp:Label id="Label7" style="Z-INDEX: 111; LEFT: 32px; POSITION: absolute; TOP: 264px" runat="server">主页</asp:Label>
- <asp:Label id="Label8" style="Z-INDEX: 112; LEFT: 32px; POSITION: absolute; TOP: 296px" runat="server">邮编</asp:Label>
- <asp:TextBox id="TextBox5" style="Z-INDEX: 113; LEFT: 88px; POSITION: absolute; TOP: 192px" runat="server"></asp:TextBox>
- <asp:TextBox id="TextBox6" style="Z-INDEX: 114; LEFT: 88px; POSITION: absolute; TOP: 224px" runat="server"></asp:TextBox>
- <asp:TextBox id="TextBox7" style="Z-INDEX: 115; LEFT: 88px; POSITION: absolute; TOP: 256px" runat="server"></asp:TextBox>
- <asp:TextBox id="TextBox8" style="Z-INDEX: 116; LEFT: 88px; POSITION: absolute; TOP: 288px" runat="server"></asp:TextBox>
- <asp:RequiredFieldValidator id="RequiredFieldValidator1" style="Z-INDEX: 117; LEFT: 272px; POSITION: absolute; TOP: 40px"
- runat="server" ErrorMessage="请输入用户ID" ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
- <asp:CompareValidator id="CompareValidator1" style="Z-INDEX: 118; LEFT: 272px; POSITION: absolute; TOP: 104px"
- runat="server" Height="8px" ErrorMessage="两次密码不同" ControlToValidate="TextBox3" ControlToCompare="TextBox2"></asp:CompareValidator>
- <asp:RangeValidator id="RangeValidator1" style="Z-INDEX: 119; LEFT: 272px; POSITION: absolute; TOP: 144px"
- runat="server" ErrorMessage="年龄超界" ControlToValidate="TextBox4" MaximumValue="75" MinimumValue="15"></asp:RangeValidator>
- <asp:Button id="Button1" style="Z-INDEX: 120; LEFT: 32px; POSITION: absolute; TOP: 336px" runat="server"
- Width="136px" Text="提交"></asp:Button>
- <asp:RegularExpressionValidator id="RegularExpressionValidator1" style="Z-INDEX: 121; LEFT: 272px; POSITION: absolute; TOP: 192px"
- runat="server" ErrorMessage="Email格式不对" ControlToValidate="TextBox5" ValidationExpression="w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*"></asp:RegularExpressionValidator>
- <asp:RegularExpressionValidator id="RegularExpressionValidator2" style="Z-INDEX: 122; LEFT: 272px; POSITION: absolute; TOP: 224px"
- runat="server" ErrorMessage="号码有误" ControlToValidate="TextBox6" ValidationExpression="((d{3})|d{3}-)?d{8}"></asp:RegularExpressionValidator>
- <asp:RegularExpressionValidator id="RegularExpressionValidator3" style="Z-INDEX: 123; LEFT: 272px; POSITION: absolute; TOP: 256px"
- runat="server" ErrorMessage="网址无效" ControlToValidate="TextBox7" ValidationExpression="http://([w-]+.)+[w-]+(/[w- ./?%&=]*)?"></asp:RegularExpressionValidator>
- <asp:RegularExpressionValidator id="RegularExpressionValidator4" style="Z-INDEX: 124; LEFT: 272px; POSITION: absolute; TOP: 288px"
- runat="server" ErrorMessage="邮编错误" ControlToValidate="TextBox8" ValidationExpression="d{6}"></asp:RegularExpressionValidator></FONT>
- </form>
- </body>
- </HTML>