Rediger

Del via


BaseValidator.OnInit(EventArgs) Method

Definition

Raises the Init event.

protected:
 override void OnInit(EventArgs ^ e);
protected public:
 override void OnInit(EventArgs ^ e);
protected override void OnInit (EventArgs e);
protected internal override void OnInit (EventArgs e);
override this.OnInit : EventArgs -> unit
Protected Overrides Sub OnInit (e As EventArgs)
Protected Friend Overrides Sub OnInit (e As EventArgs)

Parameters

e
EventArgs

A EventArgs that contains the event data.

Remarks

After this method calls the base control's OnInit method, it sets the ForeColor property to Red if the following conditions are true:

This method also registers the validation control on the page.

Notes to Inheritors

When overriding OnInit(EventArgs) in a derived class, be sure to call the base class's OnInit(EventArgs) method so that registered delegates receive the event.

Applies to

See also