summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TValidationSummary
diff options
context:
space:
mode:
authorwei <>2006-02-18 23:41:16 +0000
committerwei <>2006-02-18 23:41:16 +0000
commit270282e3a26b21184a2051995cb5b9a2755b823d (patch)
tree761d82ad761996f329d63acc770fc5a0bce9d5a2 /demos/quickstart/protected/pages/Controls/Samples/TValidationSummary
parentf1cc3c880b564362e7f00b18326e116884879231 (diff)
Update some javascript code.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples/TValidationSummary')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TValidationSummary/Home.page89
1 files changed, 74 insertions, 15 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TValidationSummary/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TValidationSummary/Home.page
index 75ca9c52..5ac143ae 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TValidationSummary/Home.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TValidationSummary/Home.page
@@ -2,24 +2,83 @@
<h1>TValidationSummary Samples</h1>
-<table class="sampletable">
-
-<tr>
-<td class="samplenote">
-Required field validator with default settings:
-</td>
-<td class="sampleaction">
-<com:TValidationSummary ValidationGroup="Group1" />
-<com:TTextBox ID="TextBox1" />
+
+<fieldset id="quickRegistration">
+ <legend>Create New Account</legend>
+
+<div class="username">
+ Username:
+ <com:TTextBox ID="Username" />
+ <com:TRequiredFieldValidator
+ ID="UsernameVal"
+ ControlToValidate="Username"
+ Display="None"
+ ValidationGroup="Group1"
+ ErrorMessage="a username is required." />
+</div>
+<div class="password">
+ Password
+ <com:TTextBox ID="Password" TextMode="Password" />
+</div>
<com:TRequiredFieldValidator
+ ID="PasswordVal"
+ ControlToValidate="Password"
+ Display="None"
ValidationGroup="Group1"
- ControlToValidate="TextBox1"
- Text="Field required." />
-<com:TButton Text="Submit" ValidationGroup="Group1" />
-</td>
-</tr>
+ ErrorMessage="a password is required." />
+
+<div class="create">
+ <com:TButton ID="Create" ValidationGroup="Group1" Text="Create New Account"/>
+</div>
+
+
+<div class="registrationSummary">
+ <com:TValidationSummary
+ ValidationGroup="Group1"
+ Display="None"
+ HeaderText="Unable to create new account because" />
+</div>
+
+</fieldset>
+
+
+<fieldset id="LoginForm">
+ <legend>Sign In</legend>
+
+<div class="username">
+ Login Name:
+ <com:TTextBox ID="UserID" />
+
+ <com:TRequiredFieldValidator
+ ID="UserVal1"
+ ControlToValidate="UserID"
+ Display="None"
+ ValidationGroup="Group2"
+ ErrorMessage="the username or email was not provided" />
+</div>
+
+<div class="password" >
+ Password:
+ <com:TTextBox ID="Pass" TextMode="Password" />
+ <com:TRequiredFieldValidator
+ ID="loginValidator3"
+ ControlToValidate="Pass"
+ Display="None"
+ ValidationGroup="Group2"
+ ErrorMessage="the password was not provided" />
+</div>
+
+<com:TButton ID="login" ValidationGroup="Group2" CssClass="button" Text="Sign In" />
+<div class="validation">
+ <com:TValidationSummary
+ ValidationGroup="Group2"
+ AutoUpdate="false"
+ Display="None"
+ ShowMessageBox="true"
+ HeaderText="You could not login because" />
+</div>
-</table>
+</fieldset>
</com:TContent> \ No newline at end of file