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

<h1>Reset Validation using Javascript</h1>

<table class="sampletable">

<tr>
<td class="samplenote">
Validator with default settings:
</td>
<td class="sampleaction">
<com:TTextBox ID="TextBox1" />
<com:TRequiredFieldValidator
	ValidationGroup="Group1"
	ControlToValidate="TextBox1"
	Text="Field required." />
<com:TButton Text="Submit" ValidationGroup="Group1" />

<a href="javascript: Prado.Validation.reset('Group1')">Reset Validation</a>
</td>
</tr>

</table>

</com:TContent>