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
How to Get Relative URL From Absolute UrL in Progammaticaly
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Bhushan GawaleRank #299 · 8.4K reputationPosted Jan 15, 2015, 2:38 AM EST
foreach (SPListItem item in itemCollections)
{
string Url = item["URL"].ToString();
if(!string.IsNullOrEmpty(Url))
{
Uri uri = new Uri(Url);
string absoluteUrl = uri.AbsoluteUri
}
}Anubhav ChaudharyRank #29 · 42K reputationPosted Jan 15, 2015, 12:17 AM EST
Use this:
HttpContext.Current.Request.Url.AbsolutePath.Remove
(0, listUrl.Length - 1);