| 1 |
lars |
1 |
<%@ Title="Edit Profile" %>
|
|
|
2 |
|
|
|
3 |
<com:TContent ID="Main">
|
|
|
4 |
|
|
|
5 |
<h2>Update Profile: <com:TLabel ID="Username" /></h2>
|
|
|
6 |
|
|
|
7 |
<com:TValidationSummary
|
|
|
8 |
Display="Dynamic"
|
|
|
9 |
ValidationGroup="user" />
|
|
|
10 |
|
|
|
11 |
<span class="input-label">Full name</span>
|
|
|
12 |
<br/>
|
|
|
13 |
<com:TTextBox ID="FullName" />
|
|
|
14 |
|
|
|
15 |
<br/>
|
|
|
16 |
|
|
|
17 |
<span class="input-label">Password</span>
|
|
|
18 |
<br/>
|
|
|
19 |
<com:TTextBox ID="Password" TextMode="Password" />
|
|
|
20 |
<com:TRegularExpressionValidator
|
|
|
21 |
ControlToValidate="Password"
|
|
|
22 |
ValidationGroup="user"
|
|
|
23 |
Display="Dynamic"
|
|
|
24 |
RegularExpression="[\w\.]{6,16}"
|
|
|
25 |
Text="*"
|
|
|
26 |
ErrorMessage="Your password must contain only letters, digits and underscores, and it must contain at least 6 and at most 16 characters."
|
|
|
27 |
ControlCssClass="input-error1" />
|
|
|
28 |
|
|
|
29 |
<br/>
|
|
|
30 |
|
|
|
31 |
<span class="input-label">Re-type Password</span>
|
|
|
32 |
<br/>
|
|
|
33 |
<com:TTextBox ID="Password2" TextMode="Password" />
|
|
|
34 |
<com:TCompareValidator
|
|
|
35 |
ControlToValidate="Password"
|
|
|
36 |
ControlToCompare="Password2"
|
|
|
37 |
ValidationGroup="user"
|
|
|
38 |
Display="Dynamic"
|
|
|
39 |
Text="*"
|
|
|
40 |
ErrorMessage="Your password entries did not match."
|
|
|
41 |
ControlCssClass="input-error3" />
|
|
|
42 |
|
|
|
43 |
<br/>
|
|
|
44 |
|
|
|
45 |
<span class="input-label">Email Address</span>
|
|
|
46 |
<br/>
|
|
|
47 |
<com:TTextBox ID="Email" />
|
|
|
48 |
<com:TRequiredFieldValidator
|
|
|
49 |
ControlToValidate="Email"
|
|
|
50 |
ValidationGroup="user"
|
|
|
51 |
Text="*"
|
|
|
52 |
ErrorMessage="Please provide your email address."
|
|
|
53 |
ControlCssClass="input-error1" />
|
|
|
54 |
<com:TEmailAddressValidator
|
|
|
55 |
ControlToValidate="Email"
|
|
|
56 |
ValidationGroup="user"
|
|
|
57 |
Display="Dynamic"
|
|
|
58 |
Text="*"
|
|
|
59 |
ErrorMessage="You entered an invalid email address."
|
|
|
60 |
ControlCssClass="input-error2" />
|
|
|
61 |
|
|
|
62 |
<br/>
|
|
|
63 |
|
|
|
64 |
<span class="input-label">Personal Website</span>
|
|
|
65 |
<br/>
|
|
|
66 |
<com:TTextBox ID="Website" AutoTrim="true" Columns="40"/>
|
|
|
67 |
|
|
|
68 |
<br/>
|
|
|
69 |
<br/>
|
|
|
70 |
|
|
|
71 |
<com:TLinkButton
|
|
|
72 |
Text="Save"
|
|
|
73 |
ValidationGroup="user"
|
|
|
74 |
CssClass="link-button"
|
|
|
75 |
OnClick="saveButtonClicked" />
|
|
|
76 |
|
|
|
77 |
</com:TContent>
|