Hello All, I have a web application(In MVC 2.0) for time attendance system.There is a new requirement to implement the RSS Feed in application.
I have written the following line of code in RSSFeedController C#:-
public ActionResult GetRSSFeed(int id)
{
string strFeed = string.Empty;
if (id == 1)
strFeed = "http://timesofindia.indiatimes.com/rssfeeds/296589292.cms";
else if (id == 2)
strFeed = "http://rss.logicalexpressions.com/LogicalTips.rss";
else if (id == 3)
strFeed = "http://rss.logicalexpressions.com/LogicalTips.rss";
using (XmlReader reader = XmlReader.Create(strFeed))
{
SyndicationFeed rssData = SyndicationFeed.Load(reader);
return View(rssData);
}
//return View();
}
This code is working fine.But I just want to know how I can decide the no of news to be show in page
thanks in advance