summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/protected/pages/Validation/RequiredFieldValidator.page
blob: e6b67c8da95da3fc3f9464b966c7b00332bcb6e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<%@ Title="Basic TRequiredFieldValidator" %>
<com:TContent ID="Content">
<com:TForm>
<h1>Basic TRequiredFieldValidator Test1</h1>
	<com:TTextBox ID="text1" />
	<com:TRequiredFieldValidator 
		ID="validator1" 
		FocusOnError="true" 
		FocusElementID="<%# $this->Page->text2->ClientID %>"
		ControlToValidate="text1" 
		ErrorMessage="*" />
	<com:TButton ID="button1" Text="Click" />
	<com:TTextBox ID="text2" />
	<com:TJavascriptLogger />
</com:TForm>
</com:TContent>