Click here to Skip to main content
12,444,360 members (50,369 online)
Click here to Skip to main content
Articles » Web Development » Ajax » Samples » Downloads

Stats

137K views
4K downloads
66 bookmarked
Posted

ASP.NET AJAX RSS Reader

, 21 Dec 2006
An ASP.NET AJAX RSS reader.
Project
Website
App_Data
Bin
AjaxControlToolkit.dll
RssToolkit.dll
CSS
images
blogBack.gif
collapse_blue.jpg
expand_blue.jpg
indicator.gif
list-bullet-01-link.gif
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void lnkOptions_Command(object sender, CommandEventArgs e)
    {
        int command = Convert.ToInt32(e.CommandArgument);

        switch (command) {
            case 1:
                RssDataSource1.Url = "http://www.asp.net/News/rss.ashx";
                BlogList1.DataBind();
                lblHeader.Text = "ASP.NET News";
                break;
            case 2:
                RssDataSource1.Url = "http://msdn.microsoft.com/vcsharp/rss.xml";
                BlogList1.DataBind();
                lblHeader.Text = "C# News";
                break;
            case 3:
                RssDataSource1.Url = "http://windowsvistablog.com/blogs/MainFeed.aspx";
                BlogList1.DataBind();
                lblHeader.Text = "Windows Vista News";
                break;
            case 4:
                RssDataSource1.Url = "http://weblogs.asp.net/atlas-team/rss.aspx";
                BlogList1.DataBind();
                lblHeader.Text = "ASP.net AJAX News";
                break;
            case 5:
                RssDataSource1.Url = "http://blogs.msdn.com/dmitryr/rss.xml";
                BlogList1.DataBind();
                lblHeader.Text = "Dmitryr's blog";
                break;
            default:
                break;
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

steve.csharp
Web Developer
United Kingdom United Kingdom
No Biography provided

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160811.3 | Last Updated 21 Dec 2006
Article Copyright 2006 by steve.csharp
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid