Asp.net MVC partial view.
Posted
by coure06
on Stack Overflow
See other posts from Stack Overflow
or by coure06
Published on 2010-05-15T10:27:09Z
Indexed on
2010/05/15
10:34 UTC
Read the original article
Hit count: 223
I want to show news on my main page using Rss Feeds. I want to show news somewhere in side panel. How i will use PartialViews to show it?
public ActionResult Feed()
{
string feedUrl = "http://www.gadgetfind.com/rss.xml";
XmlReader reader = XmlReader.Create(feedUrl);
SyndicationFeed feed = SyndicationFeed.Load(reader);
return View(feed);
}
© Stack Overflow or respective owner