sandeepkrs Posted June 30, 2008 Share Posted June 30, 2008 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 More sharing options...
aspnetguy Posted June 30, 2008 Share Posted June 30, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.