summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TCompareValidator/Home.page
blob: ab99436a7a9a38f794aee076d29a26c4dab5ecb5 (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
<com:TContent ID="body">

<h1>TCompareValidator Samples</h1>
<p><strong>Note:</strong>TCompareValidator will start
to validate only if both inputs are not empty.</p>

<table class="sampletable">

<tr>
<td class="samplenote">
Compare validator with default settings:
</td>
<td class="sampleaction">
<com:TTextBox ID="TextBox1" Text="a1" />
<com:TTextBox ID="TextBox11" Text="a2"/>
<com:TCompareValidator
	ValidationGroup="Group1"
	ControlToValidate="TextBox1"
	ControlToCompare="TextBox11"
	Text="The two textboxes must have the same value." />
<com:TButton Text="Submit" ValidationGroup="Group1" />
</td>
</tr>

<tr>
<td class="samplenote">
Compare validator with client-side validation disabled:
</td>
<td class="sampleaction">
<com:TTextBox ID="TextBox2" Text="b1"/>
<com:TTextBox ID="TextBox22" Text="b2" />
<com:TCompareValidator
	ValidationGroup="Group2"
	EnableClientScript="false"
	ControlToValidate="TextBox2"
	ControlToCompare="TextBox22"
	Text="The two textboxes must have the same value." />
<com:TButton Text="Submit" ValidationGroup="Group2" />
</td>
</tr>

</table>

</com:TContent>