BaseValidator.OnInit Method (EventArgs)
This API supports the product infrastructure and is not intended to be used directly from your code.
Raises the Init event.
Assembly: System.Web (in System.Web.dll)
The ForeColor property is not already set.
The RenderingCompatibility property indicates an ASP.NET version earlier than 4.0. By default, validator controls in ASP.NET 4 and later versions do not display errors in red. For information about how to control the visual appearance of validator controls, see Validating User Input in ASP.NET Web Pages.
This method also registers the validation control on the page.
Notes to Inheritors:
When overridingin a derived class, be sure to call the base class's method so that registered delegates receive the event.
Available since 1.1