Question: how to export data from sql server to excel using asp.net c#?
Answer: <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Export data from sql server database to excel in asp.net using c#</title> <form id="form1" runat="server"> <asp:Button ID="btnExport" Text="Export Data" runat="server" onclick="btnExport_Click" />