| 1 |
lars |
1 |
<%@ Title="Create New Account" %>
|
|
|
2 |
|
|
|
3 |
<com:TContent ID="Main">
|
|
|
4 |
|
|
|
5 |
<h2>Create New Account</h2>
|
|
|
6 |
|
|
|
7 |
<com:TValidationSummary
|
|
|
8 |
Display="Dynamic"
|
|
|
9 |
ValidationGroup="user" />
|
|
|
10 |
|
|
|
11 |
<span class="input-label">Username</span>
|
|
|
12 |
<br/>
|
|
|
13 |
<com:TTextBox ID="Username" />
|
|
|
14 |
<com:TRequiredFieldValidator
|
|
|
15 |
ControlToValidate="Username"
|
|
|
16 |
ValidationGroup="user"
|
|
|
17 |
Display="Dynamic"
|
|
|
18 |
Text="*"
|
|
|
19 |
ErrorMessage="Please choose a username."
|
|
|
20 |
ControlCssClass="input-error1" />
|
|
|
21 |
<com:TRegularExpressionValidator
|
|
|
22 |
ControlToValidate="Username"
|
|
|
23 |
ValidationGroup="user"
|
|
|
24 |
Display="Dynamic"
|
|
|
25 |
RegularExpression="[\w]{3,16}"
|
|
|
26 |
Text="*"
|
|
|
27 |
ErrorMessage="Your username must contain only letters, digits and underscores, and it must contain at least 3 and at most 16 characters."
|
|
|
28 |
ControlCssClass="input-error2" />
|
|
|
29 |
<com:TCustomValidator
|
|
|
30 |
ControlToValidate="Username"
|
|
|
31 |
ValidationGroup="user"
|
|
|
32 |
Display="Dynamic"
|
|
|
33 |
OnServerValidate="checkUsername"
|
|
|
34 |
Text="*"
|
|
|
35 |
ErrorMessage="Sorry, your username is taken by someone else. Please choose another username."
|
|
|
36 |
ControlCssClass="input-error3" />
|
|
|
37 |
|
|
|
38 |
<br/>
|
|
|
39 |
|
|
|
40 |
<span class="input-label">Full name</span>
|
|
|
41 |
<br/>
|
|
|
42 |
<com:TTextBox ID="FullName" />
|
|
|
43 |
|
|
|
44 |
<br/>
|
|
|
45 |
|
|
|
46 |
<span class="input-label">Password</span>
|
|
|
47 |
<br/>
|
|
|
48 |
<com:TTextBox ID="Password" TextMode="Password" />
|
|
|
49 |
<com:TRequiredFieldValidator
|
|
|
50 |
ControlToValidate="Password"
|
|
|
51 |
ValidationGroup="user"
|
|
|
52 |
Display="Dynamic"
|
|
|
53 |
Text="*"
|
|
|
54 |
ErrorMessage="Please choose a password."
|
|
|
55 |
ControlCssClass="input-error1" />
|
|
|
56 |
<com:TRegularExpressionValidator
|
|
|
57 |
ControlToValidate="Password"
|
|
|
58 |
ValidationGroup="user"
|
|
|
59 |
Display="Dynamic"
|
|
|
60 |
RegularExpression="[\w\.]{6,16}"
|
|
|
61 |
Text="*"
|
|
|
62 |
ErrorMessage="Your password must contain only letters, digits and underscores, and it must contain at least 6 and at most 16 characters."
|
|
|
63 |
ControlCssClass="input-error2" />
|
|
|
64 |
|
|
|
65 |
<br/>
|
|
|
66 |
|
|
|
67 |
<span class="input-label">Re-type Password</span>
|
|
|
68 |
<br/>
|
|
|
69 |
<com:TTextBox ID="Password2" TextMode="Password" />
|
|
|
70 |
<com:TCompareValidator
|
|
|
71 |
ControlToValidate="Password"
|
|
|
72 |
ControlToCompare="Password2"
|
|
|
73 |
ValidationGroup="user"
|
|
|
74 |
Display="Dynamic"
|
|
|
75 |
Text="*"
|
|
|
76 |
ErrorMessage="Your password entries did not match."
|
|
|
77 |
ControlCssClass="input-error3" />
|
|
|
78 |
|
|
|
79 |
<br/>
|
|
|
80 |
|
|
|
81 |
<span class="input-label">Email Address</span>
|
|
|
82 |
<br/>
|
|
|
83 |
<com:TTextBox ID="Email" />
|
|
|
84 |
<com:TRequiredFieldValidator
|
|
|
85 |
ControlToValidate="Email"
|
|
|
86 |
ValidationGroup="user"
|
|
|
87 |
Text="*"
|
|
|
88 |
ErrorMessage="Please provide your email address."
|
|
|
89 |
ControlCssClass="input-error1" />
|
|
|
90 |
<com:TEmailAddressValidator
|
|
|
91 |
ControlToValidate="Email"
|
|
|
92 |
ValidationGroup="user"
|
|
|
93 |
Display="Dynamic"
|
|
|
94 |
Text="*"
|
|
|
95 |
ErrorMessage="You entered an invalid email address."
|
|
|
96 |
ControlCssClass="input-error2" />
|
|
|
97 |
|
|
|
98 |
<br/>
|
|
|
99 |
|
|
|
100 |
<span class="input-label">Personal Website</span>
|
|
|
101 |
<br/>
|
|
|
102 |
<com:TTextBox ID="Website" AutoTrim="true" Columns="40"/>
|
|
|
103 |
|
|
|
104 |
<br/>
|
|
|
105 |
<br/>
|
|
|
106 |
|
|
|
107 |
<com:TLinkButton
|
|
|
108 |
Text="Register"
|
|
|
109 |
ValidationGroup="user"
|
|
|
110 |
CssClass="link-button"
|
|
|
111 |
OnClick="createUser" />
|
|
|
112 |
|
|
|
113 |
</com:TContent>
|