public static void ExportToExcel(HttpResponse Response, string sData, string sFileName) { Response.ClearContent(); Response.ContentType = "application/vnd.ms-excel"; Response.AddHeader("content-disposition", "attachment; filename=" + sFileName + ".xls"); Response.Write(sData); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)