| 1 |
lars |
1 |
<com:TContent ID="body">
|
|
|
2 |
|
|
|
3 |
<h1>TValidationSummary Samples</h1>
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
<fieldset id="quickRegistration">
|
|
|
7 |
<legend>Create New Account</legend>
|
|
|
8 |
|
|
|
9 |
<div class="username">
|
|
|
10 |
Username:
|
|
|
11 |
<com:TTextBox ID="Username" />
|
|
|
12 |
<com:TRequiredFieldValidator
|
|
|
13 |
ID="UsernameVal"
|
|
|
14 |
ControlToValidate="Username"
|
|
|
15 |
ValidationGroup="Group1"
|
|
|
16 |
Text="*"
|
|
|
17 |
ErrorMessage="a username is required." />
|
|
|
18 |
</div>
|
|
|
19 |
<div class="password">
|
|
|
20 |
Password
|
|
|
21 |
<com:TTextBox ID="Password" TextMode="Password" />
|
|
|
22 |
<com:TRequiredFieldValidator
|
|
|
23 |
ID="PasswordVal"
|
|
|
24 |
ControlToValidate="Password"
|
|
|
25 |
ValidationGroup="Group1"
|
|
|
26 |
Text="*"
|
|
|
27 |
ErrorMessage="a password is required." />
|
|
|
28 |
</div>
|
|
|
29 |
|
|
|
30 |
<div class="create">
|
|
|
31 |
<com:TButton ID="Create" ValidationGroup="Group1" Text="Create New Account"/>
|
|
|
32 |
</div>
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
<div class="registrationSummary">
|
|
|
36 |
<com:TValidationSummary
|
|
|
37 |
ValidationGroup="Group1"
|
|
|
38 |
Display="None"
|
|
|
39 |
HeaderText="Unable to create new account because" />
|
|
|
40 |
</div>
|
|
|
41 |
|
|
|
42 |
</fieldset>
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
<fieldset id="LoginForm">
|
|
|
46 |
<legend>Sign In</legend>
|
|
|
47 |
|
|
|
48 |
<div class="username">
|
|
|
49 |
Login Name:
|
|
|
50 |
<com:TTextBox ID="UserID" />
|
|
|
51 |
|
|
|
52 |
<com:TRequiredFieldValidator
|
|
|
53 |
ID="UserVal1"
|
|
|
54 |
ControlToValidate="UserID"
|
|
|
55 |
Display="None"
|
|
|
56 |
ValidationGroup="Group2"
|
|
|
57 |
ErrorMessage="the username or email was not provided" />
|
|
|
58 |
</div>
|
|
|
59 |
|
|
|
60 |
<div class="password" >
|
|
|
61 |
Password:
|
|
|
62 |
<com:TTextBox ID="Pass" TextMode="Password" />
|
|
|
63 |
<com:TRequiredFieldValidator
|
|
|
64 |
ID="loginValidator3"
|
|
|
65 |
ControlToValidate="Pass"
|
|
|
66 |
Display="None"
|
|
|
67 |
ValidationGroup="Group2"
|
|
|
68 |
ErrorMessage="the password was not provided" />
|
|
|
69 |
</div>
|
|
|
70 |
|
|
|
71 |
<com:TButton ID="login" ValidationGroup="Group2" CssClass="button" Text="Sign In" />
|
|
|
72 |
|
|
|
73 |
<div class="validation">
|
|
|
74 |
<com:TValidationSummary
|
|
|
75 |
ValidationGroup="Group2"
|
|
|
76 |
AutoUpdate="false"
|
|
|
77 |
Display="None"
|
|
|
78 |
ShowMessageBox="true"
|
|
|
79 |
HeaderText="You could not login because" />
|
|
|
80 |
</div>
|
|
|
81 |
|
|
|
82 |
</fieldset>
|
|
|
83 |
|
|
|
84 |
<div class="last-modified">$Id: Home.page 1650 2007-01-24 06:55:32Z wei $</div></com:TContent>
|