urgent help needed !

Andy (archive)

Usenet Archive
Joined
Mar 2, 2000
Messages
1,483
Reaction score
0
I have user controls(.ascx) programmed to function as modules on the same page - default.aspx. As you would be well aware, default.aspx has the normal html stuff:-

<%@ Page language="c#" codebehind="default.aspx.cs"
inherits="xmlportal.read" autoeventwireup="false"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD>.....</HEAD> <BODY>......</BODY> </HTML>

Now, here's my problem:-
I want to change the ContentType of this page to "text/Xml" based on a condition in an ascx.cs codebehind.......i tried doing it with Page.ContentType="Text/Xml".....but got an error.....as it could NOT display xml using the given stylesheet.

Please suggest a way in which I could REMOVE/DEACTIVATE all the <DOCTYPE>...<HTML> elements (override them) and display the xml on the page instead by using the xml Page CONTENT TYPE.

Thanks a lot.
Andy
IESL, MIT
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Help needed with code 5
change web form content type programmatically 1
I need help fixing my website 2
Please Help? 0
need urgent help ! 0
Help with code 0
Help needed with thank you message 5
Help please 8

Members online

No members online now.

Forum statistics

Threads
548,049
Messages
3,104,245
Members
248,133
Latest member
DujonT

Latest Threads

Top