blob: 22c899f5f8b0dc1c5004c6933205cade9f67f5e9 (
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
|
<com:TContent ID="Content">
<com:TActiveDropDownList id="addl" OnSelectedIndexChanged="SelectItem" ValidationGroup="Test1">
<com:TListItem Value="1" Text="Test 1"/>
<com:TListItem Value="2" Text="Test 2"/>
<com:TListItem Value="3" Text="Test 3"/>
</com:TActiveDropDownList>
<com:TActiveCustomValidator
ControlToValidate="addl"
ValidationGroup="Test1"
OnServerValidate="validateSelection"
Display="Dynamic"
ErrorMessage="Please Select Test 3"/>
<com:TActiveLinkButton
Text="Submit"
OnClick="submit"
ValidationGroup="Test1" />
<com:TActiveLabel id="lblResult"/>
<br/><br/>
<com:TActiveTextBox ID="testTextBox" ValidationGroup="Test2" />
<com:TActiveCustomValidator
ControlToValidate="testTextBox"
ValidationGroup="Test2"
OnServerValidate="validateTextBox"
ErrorMessage="Please enter 'Prado' !"
Display="Dynamic"
/>
<com:TActiveLinkButton
Text="Validate"
ValidationGroup="Test2"
OnClick="submit2" />
<com:TActiveLabel id="lblResult2"/>
</com:TContent>
|