Share via


WebPartMobilePage.OnPreRender method

NOTE: This API is now obsolete.

Represents the method that handles the PreRender event of the page.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ObsoleteAttribute("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see https://go.microsoft.com/fwlink/?LinkId=157231.")> _
Protected Overrides Sub OnPreRender ( _
    e As EventArgs _
)
'Usage
Dim e As EventArgs

Me.OnPreRender(e)
[ObsoleteAttribute("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see https://go.microsoft.com/fwlink/?LinkId=157231.")]
protected override void OnPreRender(
    EventArgs e
)

Parameters

Remarks

This override will redirect the request to the mobile list-of-lists page if no mobile adapters for any of the Web Parts on the nonmobile target page.

See also

Reference

WebPartMobilePage class

WebPartMobilePage members

Microsoft.SharePoint.WebPartPages namespace