I am experiencing a strange problem using the XMLDataSource and DataList
controls which I cannot seem to resolve. I am using the controls to read and
display a variety of RSS feeds. On my local machine everything runs fine and
the latest data is downloaded and displayed correctly. On the remote server
this was also running fine but since a few days ago the controls will only
show old data even though I know the feeds have been updated. The new data
is retrieved fine on the local machine with the same code. I cannot figure
out why the remote machine seems to be cacheing an old set of data. Is it
possible my host has disabled the ability for XMLDataSource to retrieve new
data?
TIA for any advice.
This is a snippet of the code:
<asp:XmlDataSou rce ID="XmlDataSour ce1" runat="server"
DataFile="http://newsrss.bbc.co. uk/rss/newsonline_uk_e dition/front_page/rss.xml"
XPath="rss/channel/item [position()<=15]">
</asp:XmlDataSour ce>
<asp:DataList ID="DataList1" runat="server" DataSourceID="X mlDataSource1">
<ItemTemplate >
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td>
<span class="rss_item _hlines_wide">
<a href="<%#XPath( "link")%>"
target="_blank" ><%#XPath("titl e")%></a>
</span>
<span class="rss_item _date_wide">
<%#XPath("pubDa te")%>
</span>
</td>
</tr>
<tr>
<td>
<span class="rss_desc ">
<%#XPath("descr iption")%>
</span>
<hr />
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
controls which I cannot seem to resolve. I am using the controls to read and
display a variety of RSS feeds. On my local machine everything runs fine and
the latest data is downloaded and displayed correctly. On the remote server
this was also running fine but since a few days ago the controls will only
show old data even though I know the feeds have been updated. The new data
is retrieved fine on the local machine with the same code. I cannot figure
out why the remote machine seems to be cacheing an old set of data. Is it
possible my host has disabled the ability for XMLDataSource to retrieve new
data?
TIA for any advice.
This is a snippet of the code:
<asp:XmlDataSou rce ID="XmlDataSour ce1" runat="server"
DataFile="http://newsrss.bbc.co. uk/rss/newsonline_uk_e dition/front_page/rss.xml"
XPath="rss/channel/item [position()<=15]">
</asp:XmlDataSour ce>
<asp:DataList ID="DataList1" runat="server" DataSourceID="X mlDataSource1">
<ItemTemplate >
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td>
<span class="rss_item _hlines_wide">
<a href="<%#XPath( "link")%>"
target="_blank" ><%#XPath("titl e")%></a>
</span>
<span class="rss_item _date_wide">
<%#XPath("pubDa te")%>
</span>
</td>
</tr>
<tr>
<td>
<span class="rss_desc ">
<%#XPath("descr iption")%>
</span>
<hr />
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
Comment