-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditProfile.aspx
More file actions
139 lines (135 loc) · 7.68 KB
/
editProfile.aspx
File metadata and controls
139 lines (135 loc) · 7.68 KB
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
<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="editProfile.aspx.cs" Inherits="hackathon_starter_asp_webforms.editProfile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link rel="stylesheet" href="external.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="container">
<div>
<asp:HiddenField ID="HiddenField1" runat="server" />
<h3>Edit Profile</h3>
<hr />
<div class="alert alert-success" runat="server" visible="false" id="divProfileSuccess">
Success! Your Profile has been updated
<a href="#" class="close" data-dismiss="alert" aria-label="close">× </a>
</div>
<div class="alert alert-danger" runat="server" visible="false" id="divProfileError">
Error! Could not update profile
<a href="#" class="close" data-dismiss="alert" aria-label="close">× </a>
</div>
<div class="alert alert-danger" runat="server" visible="false" id="divPasswordError">
The Password you entered is incorrect
<a href="#" class="close" data-dismiss="alert" aria-label="close">× </a>
</div>
<div class="alert alert-danger" runat="server" visible="false" id="divPasswordError2">
Error! please try again
<a href="#" class="close" data-dismiss="alert" aria-label="close">× </a>
</div>
<div class="alert alert-success" runat="server" visible="false" id="divPasswordSuccess">
Success! Password has been changed
<a href="#" class="close" data-dismiss="alert" aria-label="close">× </a>
</div>
<div class="row">
<div class="col-md-10">
<div class="row Profileinfo">
<div class="col-md-3">
<label>Username : </label>
</div>
<div class="col-md-9">
<asp:TextBox runat="server" CssClass="form-control" ID="txtUsername" />
</div>
</div>
<div class="row Profileinfo">
<div class="col-md-3">
<label>Fullname : </label>
</div>
<div class="col-md-9">
<asp:TextBox runat="server" CssClass="form-control" ID="txtFullname" />
</div>
</div>
<div class="row Profileinfo">
<div class="col-md-3">
<label>Gender : </label>
</div>
<div class="col-md-9">
<asp:TextBox runat="server" CssClass="form-control" ID="txtGender" />
</div>
</div>
<div class="row Profileinfo">
<div class="col-md-3">
<label>Location : </label>
</div>
<div class="col-md-9">
<asp:TextBox runat="server" CssClass="form-control" ID="txtLocation" />
</div>
</div>
<div class="row Profileinfo">
<div class="col-md-3">
<label>Change Profile Picture :</label>
</div>
<div class="col-md-9">
<asp:FileUpload runat="server" ID="fileUpload1" accept=".jpg,.png"/>
</div>
</div>
<br />
<div class="row Profileinfo">
<div class=" col-md-offset-3 col-md-9">
<asp:Button Text="Save" ID="btnProfileSave" runat="server" CssClass="btn btn-primary" OnClick="btnProfileSave_Click" />
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-10">
<h3>Change Password </h3>
<hr />
<div class="row Profileinfo">
<div class="col-md-3">
<label>Old Password :</label>
</div>
<div class="col-md-9">
<asp:TextBox runat="server" TextMode="Password" CssClass="form-control" ID="txtOldPassword" />
<asp:RequiredFieldValidator ValidationGroup="grp" ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtOldPassword" ErrorMessage="required" ForeColor="red"></asp:RequiredFieldValidator>
</div>
</div>
<div class="row Profileinfo">
<div class="col-md-3">
<label>New Password :</label>
</div>
<div class="col-md-9">
<asp:TextBox runat="server" TextMode="Password" CssClass="form-control" ID="txtNewPassword" />
<asp:RequiredFieldValidator ValidationGroup="grp" ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtNewPassword" ErrorMessage="required" ForeColor="red"></asp:RequiredFieldValidator>
</div>
</div>
<div class="row Profileinfo">
<div class="col-md-3">
<label>Confirm New Password : </label>
</div>
<div class="col-md-9">
<asp:TextBox runat="server" TextMode="Password" CssClass="form-control" ID="txtConfirmPassword" />
<asp:RequiredFieldValidator ValidationGroup="grp" ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtConfirmPassword" ErrorMessage="required" ForeColor="red"></asp:RequiredFieldValidator>
<asp:CompareValidator ValidationGroup="grp" ID="CompareValidator1" runat="server" ControlToValidate="txtConfirmPassword" ControlToCompare="txtNewPassword" Operator="Equal" Type="String" ErrorMessage="passwords do not match" ForeColor="red"></asp:CompareValidator>
</div>
</div>
<div class="row Profileinfo">
<div class=" col-md-offset-3 col-md-9">
<asp:Button Text="Save" ValidationGroup="grp" ID="btnPasswordSave" runat="server" CssClass="btn btn-primary" OnClick="btnPasswordSave_Click" />
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-10">
<hr />
<h3>Delete Account</h3>
<hr />
<div class="row">
<div class="col-md-offset-3 col-md-9">
<p>You can delete this account but bear in mind that this action is irreversible</p>
<asp:Button Text="Delete my account" ID="btnDelete" CssClass="btn btn-danger" runat="server" OnClick="btnDelete_Click" />
</div>
</div>
</div>
</div>
</div>
</div>
</asp:Content>