Quantcast
Channel: ASPNET MVC: how do i add an image to a RSS item? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

ASPNET MVC: how do i add an image to a RSS item?

$
0
0

I need to add an image to my RSS feed but cannot see it.

My code is:

var item = new SyndicationItem(    title: Title,    content: Content,    itemAlternateLink: new Uri(bla));item.ElementExtensions.Add(    new XElement("enclosure",        new XAttribute("type", "image/jpeg"),        new XAttribute("url", new Uri(Uri))    ).CreateReader());                   

If I use ElementExtensions I see a link to the image in the RSS but I would like to see directly the image without clicking the link. Is it possible?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images