Jump to content

How to Generate Report in XML Format in ASP.NET?


sandeepkrs

Recommended Posts

Hi All,I need to generate report in XML format from the rows returned from a data table. I am displaying a table on my .aspx page in a GridView Control. Now i need to generate a XML report from the data displayed in GridView. How it can be done?Thanks,Sandip

Link to comment
Share on other sites

You can use this to produce an xml file

yourDataTable.WriteXml("yourfile.xml");

This method is also overloaded so you could write it to the Response stream if you wanted to dynamically output the aspx page as xml.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...