blob: eba2dcec919c8faa1d91d0f8b91b567384d88f64 (
plain)
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
|
<com:TContent ID="Main">
<h2>Create New Account</h2>
<com:TValidationSummary Display="Dynamic" ValidationGroup="NewUser" />
<span class="input-label">Username</span>
<br/>
<com:TTextBox ID="Username" />
<com:TRequiredFieldValidator
ControlToValidate="Username"
ValidationGroup="NewUser"
Display="Dynamic"
Text="*"
ErrorMessage="Please choose a username."
ControlCssClass="inputerror" />
<com:TRegularExpressionValidator
ControlToValidate="Username"
ValidationGroup="NewUser"
Display="Dynamic"
RegularExpression="[\w]{3,16}"
Text="*"
ErrorMessage="Your username must contain only letters, digits and underscores, and it must contain at least 3 and at most 16 characters."
ControlCssClass="inputerror" />
<com:TCustomValidator
ControlToValidate="Username"
ValidationGroup="NewUser"
Display="Dynamic"
OnServerValidate="checkUsername"
Text="*"
ErrorMessage="Sorry, your username is taken by someone else. Please choose another username."
ControlCssClass="inputerror" />
<br/>
<span class="input-label">Full name</span>
<br/>
<com:TTextBox ID="FullName" />
<br/>
<span class="input-label">Password</span>
<br/>
<com:TTextBox ID="Password" TextMode="Password" />
<com:TRequiredFieldValidator
ControlToValidate="Password"
ValidationGroup="NewUser"
Display="Dynamic"
Text="*"
ErrorMessage="Please choose a password."
ControlCssClass="inputerror" />
<com:TRegularExpressionValidator
ControlToValidate="Password"
ValidationGroup="NewUser"
Display="Dynamic"
RegularExpression="[\w\.]{6,16}"
Text="*"
ErrorMessage="Your password must contain only letters, digits and underscores, and it must contain at least 6 and at most 16 characters."
ControlCssClass="inputerror" />
<br/>
<span class="input-label">Re-type Password</span>
<br/>
<com:TTextBox ID="Password2" TextMode="Password" />
<com:TCompareValidator
ControlToValidate="Password"
ControlToCompare="Password2"
ValidationGroup="NewUser"
Display="Dynamic"
Text="*"
ErrorMessage="Your password entries did not match."
ControlCssClass="inputerror" />
<br/>
<span class="input-label">Email Address</span>
<br/>
<com:TTextBox ID="Email" />
<com:TRequiredFieldValidator
ControlToValidate="Email"
ValidationGroup="NewUser"
Text="*"
ErrorMessage="Please provide your email address."
ControlCssClass="inputerror" />
<com:TEmailAddressValidator
ControlToValidate="Email"
ValidationGroup="NewUser"
Display="Dynamic"
Text="*"
ErrorMessage="You entered an invalid email address."
ControlCssClass="inputerror" />
<br/>
<span class="input-label">Personal Website</span>
<br/>
<com:TTextBox ID="Website" AutoTrim="true" />
<br/>
<com:TLinkButton Text="Register" ValidationGroup="NewUser" OnClick="createUser" />
</com:TContent>
|