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

Retrieve hyperlink field value from a list

$
0
0

Hi,

I am trying to display sharepoint custom list items on an application page.  There are some text fields and some hyperlink and pictures in this list. Text field values are displayed properly but when it comes to hyperlink/picutre fields, having this issue.

I have used following code to retrieve these values:

SPFieldUrlValue DestUrl = new SPFieldUrlValue(item["destinationURL"].ToString());

LabelUrl.Text += DestUrl.Url;

As a result of this code, it is just showing this in the place of LabelUrl: Microsoft.SharePoint.Client.FieldUrlValue

It might sound a basic but couldn't figure out why it is displaying it like that instead of actual url mentioned in the column.

TIA.

 


Viewing all articles
Browse latest Browse all 11571

Trending Articles



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