Export DataSet Using C#

Export DataSet Using C#

Hi,
I am new in web development. I have little problem. Could you help me please? For your information, I'm using asphostportal.com hosting and I have windows account that supports .NET 4.5. Is there any way or codes for export dataset or datatabe to excel file. Whenever I use click event in the button, it will save my report in an excel file. My information inside in datatable (dataset) from database and I want to save it in excel file.
Thank you.

This is a migrated post! Originally posted on 03.06.2015 by user deliasuzan. Please be aware that information can be outdated.