Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stop Web form displaying HTML

Status
Not open for further replies.

blondebier

Programmer
Jun 19, 2003
142
GB
Hi Guys,

This problem has been driving me insane for a day now.

Basically what I am trying to do is display a XML document in my application like it would appear if you opened a XML file in your browser.

I have my XMLDocument and I set this to a Session variable. I then redirect to another .aspx page which has the following in the page_load event:

Response.ContentType = "text/xml"
Response.Write(Session("myXML"))

It wont display though because all the HTML tags are in the page from the .aspx page. Is there any way to stop it rendering the HTML and just display the XML.

Is there a simpler way to do this? How do I do it?

Cheers,

Francis

 
<FeelSmall>me</FeelSmall>

School boy error...

Thanks.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top