Click here to Skip to main content
11,707,254 members (54,921 online)
Click here to Skip to main content
Articles » Languages » XML » General » Downloads
Add your own
alternative version

What is RSS, and reading and writing RSS feeds

, 24 Feb 2010 CPOL 39.2K 1.1K 48
This article explains what RSS is and how we can read and write RSS feeds.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RSSWrite.aspx.cs" Inherits="RSSWrite" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Writing RSS File</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Button ID="btnPublish" runat="server" Text="Write RSS" 
        onclick="btnPublish_Click" Width="94px"/>
    
        <asp:GridView ID="grvRSS" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333" 
            GridLines="None">
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
            <Columns>
                <asp:BoundField DataField="ProductName" HeaderText="Product Name" 
                    SortExpression="ProductName" />
                <asp:BoundField DataField="UnitPrice" HeaderText="Unit Price" 
                    SortExpression="UnitPrice" />
            </Columns>
            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>" 
            SelectCommand="SELECT * FROM [Products Above Average Price]">
        </asp:SqlDataSource>
    </div>
    </form>
</body>
</html>

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Indrajeet Sutar
Software Developer (Junior) Excel Informatics, Pune
India India
Am Indrajeet T. Sutar. I am a web developer. I am working on .net technology. I have completed my Masters in Computers and Management (people call it as MCA, MBA etc.) Apart from programming i do photography (not regularly though), traveling and reading books.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150819.1 | Last Updated 24 Feb 2010
Article Copyright 2010 by Indrajeet Sutar
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid