get list by url
hi guys, i want to know if there is a way to get list by url in sharepoint programmatically? 
July 23rd, 2015 9:26pm

In case it is a RootWeb list try: SPContext.Current.Site.RootWeb.GetList(listUrl);

If not then try: SPContext.Current.Web.GetList(listUrl);

Hope this helps!

  • Marked as answer by Ramirez xa 3 hours 38 minutes ago
Free Windows Admin Tool Kit Click here and download it now
July 23rd, 2015 9:49pm

How do we do so in JavaScript?
July 24th, 2015 12:06am

Hi,

Please look at below URL for your requirement(But this on is not direct way)..

http://sharepoint.stackexchange.com/questions/17489/how-to-get-list-by-url-using-client-object-model

Free Windows Admin Tool Kit Click here and download it now
July 24th, 2015 2:24am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics