open page as xml

Hello experts.
How do I run a report in /C# page so that it opens in xml format?
For example is classic asp I used:
Response.ContentType = "application/"
At the top of the page to have it opened as xml,
Is the same technique possible in with webcontrols?
Or do I have to use old HTML controls?
Thank you.
Who is Participating?
laotzi2000Connect With a Mentor Commented:
I think it's the same in asp .net.
Any way, the browser will not see those asp .net web controls,
what they see are just normal html code.
Only the server know of web controls.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.