-
Notifications
You must be signed in to change notification settings - Fork 1
/
signUp.aspx
128 lines (127 loc) · 9.1 KB
/
signUp.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<%@ Page Title="Sign Up" Language="C#" AutoEventWireup="true" CodeBehind="signUp.aspx.cs"
Inherits="MyBlog.signUp" MasterPageFile="~/Master.Master" %>
<asp:Content runat="server" ContentPlaceHolderID="head">
<style type="text/css">
.abc
{
-webkit-border-radius: 0x;
-moz-border-radius: 0px;
border-radius: 5px;
width: 200px;
padding-left: 5px;
border: 1px solid #C8C8C8;
border-radius: none;
height: 30px;
}
.bs-example
{
margin: 0px;
}
</style>
<script type="text/javascript">
function myfunction() {
var x = document.getElementById('<%=txtEmail.ClientID%>').value;
document.getElementById('<%=txtUserName.ClientID%>').value = x;
}
</script>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
<div class="container" style="margin-top: 2em;">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div class="container" style="width:70%">
<div class="row centered-form">
<div class="col-md-12 content">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
<b style="color: green">Sign Up to start working together<small> Hurry Up!</small></b>
</h3>
</div>
<div class="panel-body">
<form role="form">
<div class="row">
<div class="col-xs-6 col-sm-6 col-md-6">
<div class="form-group">
<asp:TextBox ID="txtName" runat="server" MaxLength="20" class="form-control input"
placeholder="Name"></asp:TextBox>
<asp:RequiredFieldValidator runat="server" ID="reqName" ControlToValidate="txtName"
ErrorMessage="Enter your Name" ValidationGroup="userEntry" ForeColor="red" Display="None">
</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="REtxtSchoolName" runat="server" ControlToValidate="txtName"
ErrorMessage="Check your Name" ValidationExpression="[a-zA-Z ]*$" ForeColor="red"
ValidationGroup="schoolEntry" Display="None"></asp:RegularExpressionValidator>
</div>
</div>
<div class="col-xs-6 col-sm-6 col-md-6">
<div class="form-group">
<asp:TextBox ID="txtMobileNumber" runat="server" MaxLength="11" class="form-control input"
placeholder="Mobile Number"></asp:TextBox>
<asp:RequiredFieldValidator runat="server" ID="reqMobile" ControlToValidate="txtMobileNumber"
ErrorMessage="Enter a Mobile Number" ValidationGroup="userEntry" ForeColor="red"
Display="None">
</asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="REtxtMobileNumber" runat="server" ControlToValidate="txtMobileNumber"
ErrorMessage="Check Your Mobile Number" ValidationExpression="^[-+]?\d+(\.\d+)?$"
ValidationGroup="userEntry" ForeColor="red" Display="None">
</asp:RegularExpressionValidator>
</div>
</div>
</div>
<div class="form-group">
<asp:TextBox ID="txtEmail" runat="server" class="form-control input" placeholder="Email Id"
onblur="myfunction()"></asp:TextBox>
<asp:RequiredFieldValidator runat="server" ID="reqemail" ControlToValidate="txtEmail"
ErrorMessage="Enter Your Email" ValidationGroup="userEntry" ForeColor="red" Display="None"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="REtxtEmail" runat="server" ErrorMessage="Please Enter Valid Email ID"
ValidationGroup="userEntry" ControlToValidate="txtEmail" ForeColor="red" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
Display="None">
</asp:RegularExpressionValidator>
</div>
<div class="form-group">
<asp:TextBox ID="txtUserName" runat="server" class="form-control input" placeholder="Username"
ReadOnly="true"></asp:TextBox>
</div>
<div class="row">
<div class="col-xs-6 col-sm-6 col-md-6">
<div class="form-group">
<asp:TextBox ID="txtPassword" runat="server" class="form-control input" placeholder="Password"
TextMode="Password" MaxLength="20"></asp:TextBox>
<asp:RequiredFieldValidator runat="server" ID="reqPassword" ControlToValidate="txtPassword"
ErrorMessage="Enter a Password" ValidationGroup="userEntry" ForeColor="red" Display="None">
</asp:RequiredFieldValidator>
</div>
</div>
<div class="col-xs-6 col-sm-6 col-md-6">
<div class="form-group">
<asp:TextBox ID="txtConfirmPass" runat="server" class="form-control input" placeholder="Confirm Password"
TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator runat="server" ID="reqConfirmPass" ControlToValidate="txtConfirmPass"
ErrorMessage="Conform your Password" ValidationGroup="userEntry" ForeColor="red"
Display="None">
</asp:RequiredFieldValidator>
<asp:CompareValidator ID="comparePass" runat="server" ControlToCompare="txtPassword"
ControlToValidate="txtConfirmPass" ErrorMessage="Password doesn't Match" ValidationGroup="userEntry"
ForeColor="red" Display="None"></asp:CompareValidator>
</div>
</div>
</div>
<asp:ImageButton ID="btnSignup" runat="server" CssClass="btn btn-success" ValidationGroup="userEntry"
OnClick="btnSignup_Click" />
</form>
<div style="padding-top: 1em; font-family: Verdana;" class="container">
<asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="userEntry"
HeaderText="Following error occured !! Please Check" ShowMessageBox="false" ShowSummary="true"
ForeColor="red" />
</div>
</div>
</div>
</div>
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</asp:Content>