blob: 5f02a5ff78889666c9af54516cacd91a13b94e23 (
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
|
<com:TContent ID="Content">
Username:
<com:TTextBox ID="Login"
ValidationGroup="LoginGroup" />
<com:TRequiredFieldValidator
ControlToValidate="Login"
Display="Dynamic"
ErrorMessage="Username cannot be empty"
ValidationGroup="LoginGroup" />
<br />
Password:
<com:TTextBox ID="Password"
TextMode="Password"
ValidationGroup="LoginGroup" />
<com:TRequiredFieldValidator
ControlToValidate="Password"
Display="Dynamic"
ErrorMessage="Password cannot be empty"
ValidationGroup="LoginGroup" />
<com:TCustomValidator
ControlToValidate="Password"
OnServerValidate="validatePassword"
Display="Dynamic"
ErrorMessage="Username and password don't match"
ValidationGroup="LoginGroup" />
<br />
<com:TButton
Text="Login"
OnCommand="loginUser"
ValidationGroup="LoginGroup" />
</com:TContent>
|