Is it possible to retrieve the ID of a list or library with a url?
For example, http://MyPortal/MySubsite/MyDocuments/Forms/AllItems.aspx
If so, please provide me with some sample code.
Many thanks,
KS
|
Is it possible to retrieve the ID of a list or library with a url? For example, http://MyPortal/MySubsite/MyDocuments/Forms/AllItems.aspx If so, please provide me with some sample code. Many thanks, KS |
|||
|
|
|
SharePoint is extremely large about the Url we pass it so even though the url isn't really to the site or to the list (but to a view) both constructor for SPSite and SPWeb.GetList accepts it:
|
|||
|
|