I have a SQLDataSource that has an XML string as its data value. I want to blast out the raw XML to the webpage. How do I do that? Thanks in advance for any help or assistance.

Recommended Answers

All 2 Replies

I have a SQLDataSource that has an XML string as its data value. I want to blast out the raw XML to the webpage. How do I do that? Thanks in advance for any help or assistance.

If the control is GridView/DetailsView then use BoundField and set HTMLEncode to false.

Otherwise use Literal control.

The easiest way is to bind that SQLDataSource to the Gridview's datasource and display the gridview.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.