Rss Implemetation
-
Hello friends, How can i implement RSS feeds in wy website. Thanks in ADvance. With regards, MAHESH.K
-
Hello friends, How can i implement RSS feeds in wy website. Thanks in ADvance. With regards, MAHESH.K
Have you tried google yet?
-
Have you tried google yet?
I've tried more and found out how to create xml.but i didn't get how to implement in my web page
modified on Friday, July 3, 2009 9:11 AM
-
I've tried more and found out how to create xml.but i didn't get how to implement in my web page
modified on Friday, July 3, 2009 9:11 AM
An RSS feed will have an associated URL that will fetch the XML making up the RSS feed. You web site should respond to requests for that URL by returning the RSS's XML. Not tricky.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Hello friends, How can i implement RSS feeds in wy website. Thanks in ADvance. With regards, MAHESH.K
Try this code for RSS feeds. <div align="center"> <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="http://www.hindu.com/rss/07hdline.xml" XPath="rss/channel/item"></asp:XmlDataSource> </div> <div align="center"> <asp:DataList ID="DataList1" runat="server" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" DataSourceID="XmlDataSource1" ForeColor="Black" GridLines="Vertical" Width="500px"> <FooterStyle BackColor="#CCCC99" /> <SelectedItemStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" /> <AlternatingItemStyle BackColor="White" /> <ItemStyle BackColor="#F7F7DE" /> <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" /> <ItemTemplate> <asp:Label Text="Title : " Font-Bold="true" ForeColor="blue" ID="lbltitle" runat="server"></asp:Label><%#XPath("title")%> <hr color="#0099ff" /> <asp:Label Text="Link : " Font-Bold="true" ForeColor="blue" ID="Label1" runat="server"></asp:Label><a target="_blank" href='<%#XPath("link")%>' ><%#XPath("link")%></a> <hr color="#0099ff" /> <asp:Label Text="Description : " Font-Bold="true" ForeColor="blue" ID="Label2" runat="server"></asp:Label><%#XPath("description")%><br /> <hr color="#0099ff" /> <asp:Label Text="Published Date : " Font-Bold="true" ForeColor="blue" ID="Label3" runat="server"></asp:Label><%#XPath("pubDate")%><br /> <hr color="#0099ff" /> <br /> </ItemTemplate> </asp:DataList> </div> you should specify the DataFile and XPath in "asp:XmlDataSource" - you should get these information from any RSS provided websites.
-
Try this code for RSS feeds. <div align="center"> <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="http://www.hindu.com/rss/07hdline.xml" XPath="rss/channel/item"></asp:XmlDataSource> </div> <div align="center"> <asp:DataList ID="DataList1" runat="server" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" DataSourceID="XmlDataSource1" ForeColor="Black" GridLines="Vertical" Width="500px"> <FooterStyle BackColor="#CCCC99" /> <SelectedItemStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" /> <AlternatingItemStyle BackColor="White" /> <ItemStyle BackColor="#F7F7DE" /> <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" /> <ItemTemplate> <asp:Label Text="Title : " Font-Bold="true" ForeColor="blue" ID="lbltitle" runat="server"></asp:Label><%#XPath("title")%> <hr color="#0099ff" /> <asp:Label Text="Link : " Font-Bold="true" ForeColor="blue" ID="Label1" runat="server"></asp:Label><a target="_blank" href='<%#XPath("link")%>' ><%#XPath("link")%></a> <hr color="#0099ff" /> <asp:Label Text="Description : " Font-Bold="true" ForeColor="blue" ID="Label2" runat="server"></asp:Label><%#XPath("description")%><br /> <hr color="#0099ff" /> <asp:Label Text="Published Date : " Font-Bold="true" ForeColor="blue" ID="Label3" runat="server"></asp:Label><%#XPath("pubDate")%><br /> <hr color="#0099ff" /> <br /> </ItemTemplate> </asp:DataList> </div> you should specify the DataFile and XPath in "asp:XmlDataSource" - you should get these information from any RSS provided websites.
Thank u Mr.KKarthik2000. It is really helpful for me.Now only i get a clear concept of Rss.Thank u once again.I have no words to greet u.