Monday, July 12, 2010

Outputting XML in aspx file...

This one, although seemingly difficult for those of you who are unfamiliar with asp.net, is surprisingly complex (sense the sarcasm please)...

you ready?

here we go...
Step 1) in your page directive, add the following: ContentType="text/xml"

This tells the browser that the output will be in XML format

Step 2) Pour yourself a beer, and enjoy the XML that will result from now on.

BAM... you're done, and welcome...

No comments:

Post a Comment