-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuaccount.aspx
214 lines (147 loc) · 8.4 KB
/
uaccount.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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="uaccount.aspx.vb" Inherits="changepass" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<title>Edit Account</title>
<script language="javascript" type="text/javascript">
// <![CDATA[
// ]]>
</script>
<style>
#p
{
text-align:justify;
}
#P
{
text-align:center;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" Runat="Server">
<form id="form1" runat="server">
<style>
.sub_div
{
width:150px; height:100px; margin-left:-7%; position:absolute;
display:none;
}
.sub_div ul li
{
list-style-type:none
}
.car_di:hover .sub_div
{
display:block
}
</style>
<!-- Header -->
<header id="header" class="skel-layers-fixed">
<h1><a href="start.aspx">CAR RENTALS </a></h1>
<nav id="nav">
<ul>
<li><a href="aboutus.aspx">ABOUT US</a></li>
<%
If (Session("u_id") <> "") Then
%>
<li><a href="uaccount.aspx">ACCOUNT</a></li>
<%
End If
%>
<li class="car_di"><a href="car.aspx">CARS</a>
<div class ="sub_div">
<ul class="">
<li style="background-color:white; width:100px;"><a href="ceconomy.aspx">Economy</a></li>
<li style="background-color:white; width:100px;"><a href="cstandard.aspx">Standard</a></li>
<li style="background-color:white; width:100px;"><a href="cluxury.aspx">Luxury</a></li>
</ul>
</div>
</li>
<li><a href="ContactUs.aspx">CONTACT US</a></li>
<%
If (Session("u_id") <> "") Then
%>
<li><a href="Logout.aspx" class="button special">Log Out</a></li>
<%
Else
%>
<li><a href="Login.aspx" class="button special">Log In</a></li>
<%
End If
%>
</ul>
</nav>
</header>
<!-- Edit Account -->
<section>
<div class="container">
<header class="major">
<br />
<br />
<h2><strong> EDIT ACCOUNT</strong></h2>
<hr />
</header>
<div class="4u">
<asp:TextBox ID="txtfirst" runat="server" placeholder="First Name"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="txtfirst" ErrorMessage="Please Enter Your First Name"
ForeColor="Red"></asp:RequiredFieldValidator>
<br />
<asp:TextBox ID="txtlast" runat="server" placeholder="Last Name"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
ControlToValidate="txtlast" ErrorMessage="Pease Enter Your Last Name" ForeColor="Red"></asp:RequiredFieldValidator>
<br />
<asp:TextBox ID="txtaddress" runat="server" placeholder="Address"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"
ControlToValidate="txtaddress" ErrorMessage="Please Enter Your Address"
ForeColor="Red"></asp:RequiredFieldValidator>
<br />
<asp:TextBox ID="txtpostcode" runat="server" placeholder="Post Code" MaxLength="6"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server"
ControlToValidate="txtpostcode" ErrorMessage="Please Enter Your Post Code"
ForeColor="Red"></asp:RequiredFieldValidator>
<br />
<asp:TextBox ID="txtcontact" runat="server" placeholder="Contact No" MaxLength="10"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server"
ControlToValidate="txtcontact" ErrorMessage="Please Enter Your Contact No."
ForeColor="Red"></asp:RequiredFieldValidator>
<br />
<asp:TextBox ID="txtemail" runat="server" placeholder="Email" TextMode="Email"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
ControlToValidate="txtemail" ErrorMessage="Please Enter Your Email" ForeColor="Red"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="txtemail" ErrorMessage="Invalid Email Address" ForeColor="Red"
ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
<br />
<asp:TextBox ID="txtpass" runat="server" placeholder="New Password" TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
ControlToValidate="txtpass" ErrorMessage="Please Enter Your Password" ForeColor="Red"></asp:RequiredFieldValidator>
<br />
<asp:TextBox ID="txtcompass" runat="server" placeholder="Confirm password"
TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
ControlToValidate="txtcompass" ErrorMessage="Please Re-enter Your Password"
ForeColor="Red"></asp:RequiredFieldValidator>
<asp:CompareValidator ID="CompareValidator1" runat="server"
ControlToCompare="txtpass" ControlToValidate="txtcompass"
ErrorMessage="Password Not Matched" ForeColor="Red"></asp:CompareValidator>
<br />
<asp:Label ID="lblMessage" runat="server" />
<br />
<center>
<asp:Button ID="Btnsubmit" runat="server" Text="Submit" Height="41px"></asp:Button>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:carrentalsConnection %>" SelectCommand="SELECT * FROM [regis]"></asp:SqlDataSource>
</center>
</div>
</div>
</section>
<footer id="footer">
<center>
<div class="6u">
<ul class="copyright">
<li><strong>© Car Rentals. All rights reserved.</strong></li>
<li><strong>Design By: Shubham Ravani. </strong></li>
<%--<li>Images: <a href="http://unsplash.com">Google/Suport</a></li>--%>
</ul>
</center>
</footer>
</form>
</asp:Content>