Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Hyperlink conversion

$
0
0

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


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>