diff options
Diffstat (limited to 'demos/personal/protected/Pages/UserLogin.page')
-rw-r--r-- | demos/personal/protected/Pages/UserLogin.page | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/demos/personal/protected/Pages/UserLogin.page b/demos/personal/protected/Pages/UserLogin.page index 588b8f6a..4bad6780 100644 --- a/demos/personal/protected/Pages/UserLogin.page +++ b/demos/personal/protected/Pages/UserLogin.page @@ -1,7 +1,18 @@ <com:TContent ID="main" >
-Username: <com:TTextBox ID="username" /><br/>
-Password: <com:TTextBox ID="password" TextMode="Password" /><br/>
-<com:TButton Text="Login" Click="login" />
-<com:TLabel ID="error" />
-</com:TContent>
-
+Username:
+<com:TTextBox ID="Username" />
+<com:TRequiredFieldValidator
+ ControlToValidate="Username"
+ Text="Username is required."
+ Display="Dynamic"/>
+<br/>
+Password: <com:TTextBox ID="Password" TextMode="Password" /><br/>
+<com:TButton Text="Login" />
+<com:TCustomValidator
+ ControlToValidate="Password"
+ Text="Login failed."
+ Display="Dynamic"
+ ServerValidate="login"
+ />
+<com:TLabel ID="Error" />
+</com:TContent>
\ No newline at end of file |