i want that when i click a button the data from particular table(including table header) should import to excel sheet and excel should save on solution explore folder excel.
i dont want to use any data grid like grid view or any thing.
how i can achieve this
Exporting data from database to excel sheet without use of gridview
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Mukesh KumarRank #615 · 3.9K reputationPosted Jan 13, 2012, 2:26 AM EST
Check this link http://blog.sqlauthority.com/2008/01/08/sql-server-2005-export-data-from-sql-server-2005-to-microsoft-excel-datasheet/
Satyapriya NayakRank #47 · 31.5K reputationPosted Jan 13, 2012, 2:31 AM EST
Please refer the below link
http://www.codeproject.com/KB/aspnet/coolcode2_aspx.aspx
Thanks
Ankit Shivnakr87 reputationPosted Jan 13, 2012, 3:25 AM EST
Please Find Attachment for Your solution and make change according to ur need