System.Web.UI.WebControls.BaseValidator.OnPreRender Method

Raises the System.Web.UI.Control.PreRender event.

Syntax

protected override void OnPreRender (EventArgs e)

Parameters

e
A EventArgs that contains the event data.

Remarks

This method has been overridden to check the client browser and configure the validation control for compatibility prior to rendering.

Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.

The BaseValidator.OnPreRender(EventArgs) method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0