다음을 통해 공유


ListViewWebPart.OnPreRender Method

Handles the PreRender event that occurs immediately before the Web Part is rendered to its containing Web Parts page.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Protected Overrides Sub OnPreRender ( _
    e As EventArgs _
)
'Usage
Dim e As EventArgs

Me.OnPreRender(e)
protected override void OnPreRender(
    EventArgs e
)

Parameters

Remarks

If the Web Part must perform any necessary prerendering steps before saving the view state and rendering content during the PreRender event, you can add an appropriate event handler to the Web Part constructor. For example:

this.PreRender += new EventHandler (MyPreRenderHandler);

See Also

Reference

ListViewWebPart Class

ListViewWebPart Members

Microsoft.SharePoint.WebPartPages Namespace