473,662 Members | 2,631 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XMLDatasource / DataList

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>

Sep 17 '08 #1
1 1799
Try adding this piece of code:

Response.Cache. SetCacheability (HttpCacheabili ty.NoCache);

Thanx,
Vijeta
Sep 18 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3158
by: mike | last post by:
can somebody please show me some code that will let me populate a checkboxlist from the xmldatasource, and have the text property set to the names in the xml file thanks you can also email me at i_am_the_freshmaka@hotmail.com
2
1446
by: Sleazy | last post by:
Hi, I am attempting to right a news scroller control that is driven by and XML file. The way I have it set up is: <News> <Item Title="sometitle"> html content goes here </Item> </News>
3
9163
by: Brian | last post by:
Using external XML, I'm trying to build a quiz, but I can't seem to specify the DataSource for the RadioButtonList within a Repeater ItemTemplate. I've tried a number of approaches, but I haven't really had any success. I'm pretty sure I should be casting my XPathSelect() call to something so I can get at its attributes. This seems like it should be easy, and maybe I'm missing something obvious. Does anyone have any ideas? Here is the...
0
914
by: Mario Vázquez | last post by:
Hi, Does anybody know how to use the XPath function of TemplateControl like this? <asp:XmlDataSource ID="XmlDataSource1" runat="server" XPath="ROOT/query" /> <asp:DataList ID="dl1" runat="server" DataSourceID="XmlDataSource1"> <ItemTemplate> <% if #XPath("anything")="something" Then %>
2
2675
by: Zulander | last post by:
hi, i am trying to put a session variable in the DataFile of the XmlDataSource, but for some reason i am getting: Server tags cannot contain <% ... %constructs. <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="<% Session("UserPath") %"></asp:XmlDataSource> I have even tried this: <asp:XmlDataSource ID="XmlDataSource1" runat="server"
2
7450
by: sck10 | last post by:
Hello, How do you set the website proxy using the XmlDataSource control? Thanks, sck10
2
1835
by: rote | last post by:
I have a code below i'm trying to test It had a DataSetDatasource but i thinks its deprecated if yes what can i use in this scenario below? I used XmlDatasource but its saying it can't find the property url in the xml which is there Any ideas? ** XML datasource file below
0
1363
by: | last post by:
I'm interested in paging a ASP.NET datalist. The ASP.NET datalist control does not natively support paging. I am binding an XmlDataSource (which is populated by entries in the filesystem) to the my datalist control. The output is several hundred images in a tabular view. I would like to limit the number of images to perhaps 50 per page. There are various articles on the web that describe how to custom-implement paging with datalist...
8
2066
by: Wessel Troost | last post by:
We are using an XML data source in the Page_Load event of an ASP.NET page, like: protected void Page_Load(object sender, EventArgs e) { // Retrieve XML from web service for product idea in URL string sXML = GetXmlFromWebService(Request); XmlDataSource ds = new XmlDataSource(); ds.Data = sXML;
0
8857
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8768
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7368
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5655
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4181
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2763
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1754
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.