Hi,
I've got a webapp which are programmed with c# as codebehind. In the webapp I've go 2 aspx. One as the startpage and a second which will be opened when some special action is driven on the 1st page. When the second page is opened some POST-Data have to be transfered from the 1st to the 2nd. For that reason I'm using the function Server.Transfer in my c#-eventhandler. But if i do so I've got following error message:
Code:
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
A string literal was expected, but no opening quote character was found. Error processing resource 'http://localhost/LogAWebReport/WebReport.aspx'. Line 2, Position 63
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
--------------------------------------------------------------^
my code for calling the page is:
Code:
String sXmlSel = "<selection>";
//read the owner node
XmlNode nodeOwner = xmlDoc.SelectSingleNode( "//owner" );
sXmlSel += nodeOwner.OuterXml;
//read the report node
XmlNode nodeReport = xmlDoc.SelectSingleNode( "//report" );
sXmlSel += nodeReport.OuterXml;
sXmlSel += "</selection>";
XmlDocument xmlSel = new XmlDocument( );
xmlSel.LoadXml( sXmlSel );
Response.ContentType = "text/xml";
//Response.Redirect( "http://localhost/LogAWebReport/WebForm1.aspx?Type=Redirect" );
Server.Transfer( "Test.aspx" );
Does anyone knows what could be wrong?
Thanks in Advance
Markus
P.S Test.aspx is an empty page like it is generated from VS.NET 2002