open asp.net page as xml

Hello experts.
How do I run a report in asp.net /C# page so that it opens in xml format?
For example is classic asp I used:
Response.ContentType = "application/vnd.ms-excel"
At the top of the page to have it opened as xml,
Is the same technique possible in asp.net with asp.net webcontrols?
Or do I have to use old HTML controls?
Thank you.
glowasAsked:
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.
0
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.