WebZone::OnPreRender Method (EventArgs^)

 
System_CAPS_noteNote

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

Raises the PreRender event.

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

public protected:
virtual void OnPreRender(
	EventArgs^ e
) override

Parameters

e
Type: System::EventArgs^

An EventArgs that contains the event data.

Exception Condition
InvalidOperationException

A WebZone control is nested within another zone or within a Part control.

The OnPreRender method overrides the base OnPreRender method in order to prevent a zone from rendering if its parent control is another zone or a part control.

.NET Framework
Available since 2.0
Return to top
Show: