Hi,
I have written this code for fetching Id from a list. That List contain one column URL which type is HyperLink or Picture. I have to compare that coulmn value to a string URL1.URL and URL1 contains same value.But Its not returning anything.Is there anythingwrong in Hyperlink conversion.
from SPListItem li in list1.Items.OfType<SPListItem>()
where Convert.ToString(li["URL"]).ToUpper().Equals(URL1.ToUpper())
select new
{
ID1 = li["ID"]
};
Shubho