-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAddAgency.aspx
142 lines (126 loc) · 5.78 KB
/
AddAgency.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
129
130
131
132
133
134
135
136
137
138
139
140
141
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="AddAgency.aspx.cs" Inherits="AddAgency" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<link rel="stylesheet" type="text/css" href="CRegister.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<title>Register Page</title>
<style>
.buttons{
text-align:center;
}
.form {
width: 500px;
padding: 8% 0 0;
margin: auto;
position: relative;
z-index: 1;
background: #FFFFFF;
max-width: 500px;
margin: 0 auto 100px;
padding: 45px;
text-align:left;
margin-top: 20px;
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
}
h1{font-weight:bold;
text-align:center;}
.labels
{font-weight:bold;
font-size:14px;
padding-bottom:5px;
}
.form .message {
margin: 15px 0 0;
color: #b3b3b3;
font-size: 12px;
text-align:center;
}
.form .message a {
color: #4CAF50;
text-decoration: none;
text-align:center;
width:600px;
}
.form .login_type {
color: #b3b3b3;
text-align:left;
}
.RegisterButton {
width:60px;
align-content:center;
font-family: "Roboto", sans-serif;
text-transform: uppercase;
outline: 0;
background: #4CAF50;
width: 100%;
border: 0;
padding: 15px;
color: #FFFFFF;
font-size: 14px;
-webkit-transition: all 0.3 ease;
transition: all 0.3 ease;
cursor: pointer;
}
.RegisterButton:hover, .RegisterButton:active, .RegisterButton:focus {
background: #43A047;
}
.validation {
font-size:12px;
color:red;
text-align:left;
}
.Radio{
font-size:12px;
text-align:left;
}
body{
background: #008AC2; /* fallback for old browsers */
background: -webkit-linear-gradient(right, #008AC2, #8DC26F);
background: -moz-linear-gradient(right, #008AC2, #8DC26F);
background: -o-linear-gradient(right, #008AC2, #8DC26F);
background: linear-gradient(to left, #008AC2, #8DC26F);
font-family: "Roboto", sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form id="form1" runat="server">
<div class="form">
<h1>Agent Registration</h1>
<br />
<asp:Label Text="Name : " runat="server" CssClass="labels"></asp:Label>
<asp:TextBox runat="server" ID="FirstName" placeholder=" Name" CssClass="form-control"></asp:TextBox>
<asp:RequiredFieldValidator runat="server" ControlToValidate="FirstName" Text="Name is required" CssClass="validation"></asp:RequiredFieldValidator>
<br /><br />
<asp:Label Text="Email : " runat="server" CssClass="labels"></asp:Label>
<asp:TextBox runat="server" ID="Email" placeholder="Email" CssClass="form-control"></asp:TextBox>
<asp:RequiredFieldValidator runat="server" ControlToValidate="Email" Text="Email is required" CssClass="validation"></asp:RequiredFieldValidator>
<br />
<asp:RegularExpressionValidator CssClass="validation" runat="server" ControlToValidate="Email" Text="Enter valid email" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
</asp:RegularExpressionValidator><br />
<asp:Label Text="Password : " runat="server" CssClass="labels"></asp:Label>
<asp:TextBox runat="server" placeholder="Password" CssClass="form-control" ID="Password" TextMode="Password" ></asp:TextBox>
<asp:RequiredFieldValidator CssClass="validation" Text="Password is required" ControlToValidate="Password" runat="server"></asp:RequiredFieldValidator>
<br />
<asp:RegularExpressionValidator runat="server"
ErrorMessage="Should be atleast 7 characters" ControlToValidate="Password" ValidationExpression="^[a-zA-Z0-9'@&#.\s]{7,100}$" CssClass="validation" /><br/>
<asp:Label Text="Re-enter Password : " runat="server" CssClass="labels"></asp:Label>
<asp:TextBox runat="server" CssClass="form-control" placeholder="Re-enter Password" ID="CPassword" TextMode="Password" ></asp:TextBox>
<asp:RequiredFieldValidator CssClass="validation" Text="Enter Password" ControlToValidate="CPassword" runat="server"></asp:RequiredFieldValidator>
<br />
<asp:CompareValidator
runat="server"
ControlToCompare="Password"
ControlToValidate="CPassword"
ErrorMessage="Your passwords do not match"
Display="Dynamic" CssClass="validation" />
<br />
<div class="buttons">
<asp:Button runat="server" CssClass="btn btn-success" ID="Add" Text="Add" onClick="Register_Button" Width="100px" />
<asp:Button runat="server" CssClass="btn btn-danger" ID="Cancel" CausesValidation="false" Text="Cancel" Width="100px" OnClick="Cancel_Click"/>
</div>
</div>
</form>
</asp:Content>