HtmlForm.OnPreRender Method (EventArgs)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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
Available since 2.0
Return to top