W
Wessel Troost
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["ProductID"]);
XmlDataSource ds = new XmlDataSource();
ds.Data = sXML;
// Display data on web page
}
Now the weirdest thing is that the XML is actually *cached* between
page loads. The first product is shown correctly, but the next page
request always shows the first product. I've used the debugger to
verify that GetXmlFromWebService returns the correct XML for the new
product. But the XmlDataSource seems to ignore the new XML, even
though it's newly created.
Anyone have a clue what's going on?
TIA,
Wessel
page, like:
protected void Page_Load(object sender, EventArgs e)
{
// Retrieve XML from web service for product idea in URL
string sXML = GetXmlFromWebService(Request["ProductID"]);
XmlDataSource ds = new XmlDataSource();
ds.Data = sXML;
// Display data on web page
}
Now the weirdest thing is that the XML is actually *cached* between
page loads. The first product is shown correctly, but the next page
request always shows the first product. I've used the debugger to
verify that GetXmlFromWebService returns the correct XML for the new
product. But the XmlDataSource seems to ignore the new XML, even
though it's newly created.
Anyone have a clue what's going on?
TIA,
Wessel