Using RSS

J

jack

hi all im trying to use RSS Feed in my project which is an in house
project
im trying to use Rss im this but im not able to guess how to do this
well i tried some of the things but not able to make it like for
example for using Rss we need to use Rss.dll im not able to find this
dll
can this be done without downloading any dll from net i have dot net
1.0 can i create a project using rss in this version .if yess then how
Please Help
Thanks for replying me
 
S

Siva M

Will this help?
http://aspnet.4guysfromrolla.com/articles/021804-1.aspx

hi all im trying to use RSS Feed in my project which is an in house
project
im trying to use Rss im this but im not able to guess how to do this
well i tried some of the things but not able to make it like for
example for using Rss we need to use Rss.dll im not able to find this
dll
can this be done without downloading any dll from net i have dot net
1.0 can i create a project using rss in this version .if yess then how
Please Help
Thanks for replying me
 
J

jack

Thanks this is what i'v made and is working fine.
if there is any other method please do reply ..
Thanks for the help
--------------------------------------------------------------------
const string FeedUrl =
"http://www.dnaindia.com/syndication/rss,catID-1.xml";
try
{
HttpWebRequest SSWebRequest =
(HttpWebRequest)WebRequest.Create(FeedUrl);
WebProxy SSProxy=new WebProxy();
SSProxy=(WebProxy)SSWebRequest.Proxy;
SSProxy.Address = new Uri("http://192.168.000.000:0000");
SSProxy.Credentials = new NetworkCredential("userid", "password");
SSWebRequest.Proxy = SSProxy;

RssFeed feed = RssFeed.Read(SSWebRequest);

Response.Write("Feed URL = "+feed.Url + "
" ) ;
// Display channels
Response.Write("Channels = {0}" + feed.Channels.Count+ "
");
int ii=0;
foreach (RssChannel chan in feed.Channels)
{

// Output channel information
Response.Write(chan.Description + "
");
Response.Write(chan.PubDate.ToString("R")+ "
");
Response.Write("Items = {0}" + chan.Items.Count+ "
");
// Output article titles

foreach (RssItem item in chan.Items)
{
ii=ii+1;
Response.Write(" {"+ ii + "}" + item.Title + "
");
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top