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