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

Image URL from publishing Image Site column ?

$
0
0

Hi techies,

I have created one column say PublishingImage of PublishingImage Type and added it in custom list.
Used this column to upload image. But not able to fetch its URL.

Used the below line to fetch the Url:

SPFieldUrlValue oUrl = new SPFieldUrlValue(Convert.ToString(item["PublishingImage"]));

and assigned the oUrl to Datarow like this:

dr["Image"] =oUrl.Url;

but still not getting the proper URL.

Any help will be appreciated


Viewing all articles
Browse latest Browse all 11571

Trending Articles



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