Tuesday, February 3, 2009

RSS Feeds in ASP.NET





Step:1Download RssToolkit from the links
  • Here OR

  • Here
  • Step:2
      Goto Toolbox in Visual Studio and select ToolBox

      Right Click on any of the Tab and select Choose Items
      And Browse the dll file in the Bin folder from downlaoded
      Toolkit

    Step:3Drag N Drop DataList control and RssDataSource Control
    Step:4

    Open smart tag of RssDataSource Control and select Configure

    Data Source... and finally pass the

    RSS URL (url that ends with .xml or .rss)

    Step:5

    Bind this RssDataSource with DataSourceId property of

    GridView Control and add the following code inside

    GridView's columns tag


    Now you can redirect this page in where ever you want using
    imagebutton,link or hyperlink follwed by a rssfeed
    image


    LatestNews

    (example like you can save this image if needed)

    Here am using BCC RSS URL (http://newsrss.bbc.co.uk/rss/newsonline_world_edition/technology/rss.xml)

    No comments:

    Post a Comment