Expand Minimize
This topic has not yet been rated - Rate this topic

SPWeb.GetListFromWebPartPageUrl Method

Windows SharePoint Services 3
Returns the list that is associated with the first Web Part on the specified Web Part page.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
public SPList GetListFromWebPartPageUrl (
	string pageUrl
)

Parameters

pageUrl

A string that contains the site-relative URL of a Web Part page, for example, /Lists/Announcements/AllItems.aspx.

Return Value

An SPList object that represents the list.

The GetListFromWebPartPageUrl method does not return the list that is associated with the specified Web Part page. To return the list that is associated with a specified URL, use the GetList method.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.