Feed page is blankhttp://forums.asp.net/t/1792967.aspx/1?Feed+page+is+blankTue, 17 Apr 2012 04:54:23 -040017929674932812http://forums.asp.net/p/1792967/4932812.aspx/1?Feed+page+is+blankFeed page is blank <pre class="prettyprint"><strong>Default.aspx</strong></pre> <pre class="prettyprint">&lt;%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" &gt; &lt;head runat="server"&gt; &lt;title&gt;Untitled Page&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;form id="form1" runat="server"&gt; &lt;div&gt; &lt;table cellpadding="0" cellspacing="0"&gt; &lt;tr&gt; &lt;td&gt; &lt;table class="NormalText" runat="server" id="tblNews" cellpadding="0" cellspacing="0"&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </pre> <pre class="prettyprint"><strong>Default.aspx.vb</strong></pre> <pre class="prettyprint">Imports System.Data Imports System.Configuration Imports System.Web Imports System.Web.Security Imports System.Web.UI Imports System.Web.UI.WebControls Imports System.Web.UI.WebControls.WebParts Imports System.Web.UI.HtmlControls Imports System.Net Imports System.Xml Imports System.IO Public Partial Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(sender As Object, e As EventArgs) Dim rss As String = "http://localhost:2923/RssFeed/Employees.aspx".ToString() Try FetchRssFeeds(rss) Catch ex As Exception End Try End Sub Public Sub FetchRssFeeds(rss As String) ' Read the RSS feed Dim rssRequest As WebRequest = WebRequest.Create(rss) Dim rssResponse As WebResponse = rssRequest.GetResponse() Dim rssStream As Stream = rssResponse.GetResponseStream() ' Load XML Document Dim rssDocument As New XmlDocument() rssDocument.Load(rssStream) Dim rssList As XmlNodeList = rssDocument.SelectNodes("rss/channel/item") Dim title As String = "" Dim link As String = "" Dim description As String = "" ' Loop through RSS Feed items For i As Integer = 0 To rssList.Count - 1 Dim rssDetail As XmlNode rssDetail = rssList.Item(i).SelectSingleNode("title") If rssDetail IsNot Nothing Then title = rssDetail.InnerText Else title = "" End If rssDetail = rssList.Item(i).SelectSingleNode("link") If rssDetail IsNot Nothing Then link = rssDetail.InnerText Else link = "" End If rssDetail = rssList.Item(i).SelectSingleNode("description") If rssDetail IsNot Nothing Then description = rssDetail.InnerText Else description = "" End If ' Populate the HTML table rows and cells Dim cell As New HtmlTableCell() cell.InnerHtml = "&lt;b&gt;&lt;a href='" &amp; link &amp; "' target='new'&gt;" &amp; title &amp; "&lt;/a&gt;&lt;/b&gt;" Dim trow As New HtmlTableRow() trow.Cells.Add(cell) tblNews.Rows.Add(trow) Dim cell2 As New HtmlTableCell() cell2.InnerHtml = "&lt;p align='justify'&gt;" &amp; description &amp; "&lt;/p&gt;" Dim trow2 As New HtmlTableRow() trow2.Cells.Add(cell2) tblNews.Rows.Add(trow2) Next End Sub End Class </pre> <p></p> 2012-04-15T03:47:44-04:004933033http://forums.asp.net/p/1792967/4933033.aspx/1?Re+Feed+page+is+blankRe: Feed page is blank <p>debug line by line using breakpoint and see if there is any error....also use SyndicationFeed Class....</p> <p>Thanks,</p> 2012-04-15T10:30:18-04:004933275http://forums.asp.net/p/1792967/4933275.aspx/1?Re+Feed+page+is+blankRe: Feed page is blank <p>http://stackoverflow.com/questions/1164494/server-returns-blank-pages-with-asp-net-3-5-on-iis6</p> 2012-04-15T15:14:07-04:004935777http://forums.asp.net/p/1792967/4935777.aspx/1?Re+Feed+page+is+blankRe: Feed page is blank <p>Please refer to: Fetch and Display RSS Feeds using ASP.Net</p> <p><a href="http://www.aspsnippets.com/Articles/Fetch-and-Display-RSS-Feeds-using-ASP.Net.aspx">http://www.aspsnippets.com/Articles/Fetch-and-Display-RSS-Feeds-using-ASP.Net.aspx</a></p> 2012-04-17T04:54:23-04:00