Export (0) Print
Expand All

HtmlForm.OnPreRender Method

Raises the PreRender event for the HtmlForm control.

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

protected internal override void OnPreRender(
	EventArgs e


Type: System.EventArgs

An EventArgs that contains the event data.

The OnPreRender method is called just prior to rendering the HtmlForm control. If the Page.SmartNavigation property is set to true, the OnPreRender method registers the smart navigation script file reference so that it gets rendered.


The Page.SmartNavigation property has been deprecated in ASP.NET version 2.0.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
© 2015 Microsoft