summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/protected/pages/Validation/CheckBox.page
blob: 42241ca7b34a47298193db3f696553135e6ca7d8 (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
<%@ Title="Basic TRequiredFieldValidator" %>
<com:TContent ID="Content">
<com:TForm>

<h1>An AutoPostBack CheckBox</h1>

<com:TCheckBox
	AutoPostBack="true"
	Text="Without ValidationGroup"
	/>
<br/>
<! Uncomment the following and see
<com:TCheckBox
	AutoPostBack="true"
	Text="With ValidationGroup"
	ValidationGroup="Group"
	/>
<br/>
<com:TCheckBox
	AutoPostBack="true"
	CausesValidation="false"
	Text="CausesValidation=false"
	/>
<br/>
!>
Input: <com:TTextBox ID="TextBox" />
<com:TRequiredFieldValidator
	ControlToValidate="TextBox"
	Display="Dynamic"
	ErrorMessage="input required in the textbox"
	ValidationGroup="Group"
	/>
<br/>
<com:TJavascriptLogger />

</com:TForm>
</com:TContent>