summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/ActiveControls/ActiveCustomValidator.page
blob: 5c0f9124817b973b85432937b66d090134f1f4d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<com:TContent ID="body">
<h1 id="126030">TActiveCustomValidator</h1>
<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActiveCustomValidator" />

<p id="630421" class="block-content">Performs custom validation using only server-side <tt>OnServerValidate</tt>
 validation event. The client-side uses callbacks to raise
 <tt>onServerValidate</tt> event. The <tt>ClientValidationFunction</tt> property
 is disabled and will throw an exception if trying to set this property.
</p>

<p id="630422" class="block-content"> Beware that the <tt>onServerValidate</tt> may be
raised when the control to validate on the client side
changes value, that is, the server validation may be called many times.

After the callback or postback, the {@link onServerValidate onServerValidate}
is raised once more. The <tt>IsCallback</tt> property of the <tt>TPage</tt> class
will be true when validation is made during a callback request.
</p>

<com:RunBar PagePath="ActiveControls.Samples.TActiveCustomValidator.Home" />

</com:TContent>