ModelErrorMessage.OnPreRender Method (EventArgs)

.NET Framework (current version)

Raises the PreRender event of the base class and specifies additional processing.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

protected internal override void OnPreRender(
	EventArgs e


Type: System.EventArgs

The event arguments.

If there is an error, this method HTML-encodes the error message, and it sets the focus to the associated control if the SetFocusOnError property is true.

.NET Framework
Available since 4.5
Return to top