Show RSS Feed (with sort, ... )

Last post 11-08-2009 11:39 AM by mudassarkhan. 3 replies.

Sort Posts:

  • Show RSS Feed (with sort, ... )

    11-07-2009, 7:21 PM
    • Member
      point Member
    • im.cresus
    • Member since 08-18-2009, 9:00 PM
    • France
    • Posts 19

    Hi all, I need help from you.

    How show my RSS feed (with a Webslice, that I would add subsequently) into my webform ?

    I know, i can use simply :

    <asp:Xml ID="Xml1" DataSource="RSS.xml" TransformSource="RSS.xslt" runat="server" />
    
    
    but I would like to "customer" can make a sorting and/or filter by category for example... and add paging if possible... somewhat like a DataGrid...

    I have heard XPath? But how does this DisplayRotation? I've tested it in this form:
    <asp:XmlDataSource runat="server" ID="XmlDataSource1" XPath="rss/channel" DataFile="~/News/RSS.fr.xml">
            </asp:XmlDataSource>
            <asp:Repeater ID="Repeater1" runat="server" DataSourceID="XmlDataSource1">
                <ItemTemplate>
                    <h3>
                        News</h3>
                    <table style="width: 100%; text-align:left;">
                        <tr>
                            <td>
                                <img alt="image" width="100px" src="<%#XPath("item/logo")%>" />
                            </td>
                            <td>
                                <h4>
                                    <%#XPath("item/title")%></h4>
                                <div>
                                    <%#XPath("item/description")%>
                                </div>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:Repeater>
    
    but in this way, I have come to view only the 1st item.... and others? And filters? And paging? In short, is not quite what I was looking for...
    If someone can help me. Thank you in advance.

    Cordialy, André Talavera

    Cdt, Cresus_

    i'm Cresus.
  • Re: Show RSS Feed (with sort, ... )

    11-08-2009, 4:37 AM
    • All-Star
      59,893 point All-Star
    • mudassarkhan
    • Member since 02-28-2008, 5:28 AM
    • Mumbai, India
    • Posts 10,551
    • TrustedFriends-MVPs

    Refer here

    http://aspsnippets.com/post/2009/03/22/Display-RSS-Feeds-using-ASPNet.aspx

    I have getting RSS fields into a dataset

    after that you can bind the dataset to Gridview

    which has paging and sorting functionality 

  • Re: Show RSS Feed (with sort, ... )

    11-08-2009, 10:31 AM
    • Member
      point Member
    • im.cresus
    • Member since 08-18-2009, 9:00 PM
    • France
    • Posts 19

    Thanks, but can I put a sort and filter system?

    I've heard of BlogEngine.Net for ASP.NET Web applications... which is better I sought has... (search engine, sorting (tag), comments and archive system, etc.) but how I could use it in my application?

    Cdt, André Talavera

    i'm Cresus.
    Filed under:
  • Re: Show RSS Feed (with sort, ... )

    11-08-2009, 11:39 AM
    Answer
    • All-Star
      59,893 point All-Star
    • mudassarkhan
    • Member since 02-28-2008, 5:28 AM
    • Mumbai, India
    • Posts 10,551
    • TrustedFriends-MVPs

     Gridview has in built sort functionality

    http://www.aspdotnetcodes.com/Custom_Sorting_Paging_GridView.aspx

    And for filter system you can add all categories in dropdownlist and based on that you can filer

    http://www.aspdotnetcodes.com/Asp.Net_GridView_Filter.aspx

Page 1 of 1 (4 items)