GetViewFromUrl Method
The GetViewFromUrl method of the SPWeb class returns a view of a list within the site based on the specified URL.
Parameters
strListUrl A string that contains either an absolute URL or a site-relative URL.
Return Value
A Microsoft.SharePoint.SPView object that represents the view of the list.
Example
The following code example uses the GetViewFromUrl method to return a view and uses the view to return and display items.
This example requires using directives (Imports in Visual Basic) for the Microsoft.SharePoint, Microsoft.SharePoint.Utilities, and Microsoft.SharePoint.WebControls namespaces.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security