WebPartMobilePage.OnInit method

NOTE: This API is now obsolete.

Represents the method that handles the Init event.

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 OnInit ( _
    e As EventArgs _
)
'Usage
Dim e As EventArgs

Me.OnInit(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 OnInit(
    EventArgs e
)

Parameters

Remarks

Adds all Web Parts with mobile adapters to the control collection of the page. However, if the request URL includes a QueryString that identifies a particular Web Part and the page is in detail view, then only the Web Part that is specified in the URL is added.

See also

Reference

WebPartMobilePage class

WebPartMobilePage members

Microsoft.SharePoint.WebPartPages namespace