Akshay

Akshay

  • NA
  • 82
  • 47.1k

How to Get Relative URL From Absolute UrL in Progammaticaly

Jan 15 2015 4:05 AM
foreach (SPListItem item in itemCollections)
{
string Url = item["URL"].ToString();
string[] url=Url.Split(',');
var listUrl = url[0];  //got Absolute URL Here


 var List = web.GetList(relativeUrl);
}


Absolute URl:- http://pc6/Surveys/Lists/Surveylist

Answers (2)