Question: how to export data from grid view to excel in asp.net c#?
Answer: private void ExportGridToExcel() { Response. Clear(); Response. Buffer = true; Response. ClearContent(); Response. ClearHeaders(); Response. Charset = ""; string FileName ="Vithal"+DateTime. Now+". xls";