System.Web.UI.WebControls.BaseValidator.OnInit Method

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

Syntax

protected override void OnInit (EventArgs e)

Parameters

e
A EventArgs that contains the event data.

Remarks

After this method calls the base control's System.Web.UI.Control.OnInit(EventArgs) method, it sets the WebControl.ForeColor property to System.Drawing.Color.Red if the following conditions are true:

This method also registers the validation control on the page.

Requirements

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