public void ExportFile(string FileName) { string name = "Test File"; Response.AppendHeader("content-disposition", "attachment; filename=" + name); Response.ContentType = "application/vnd.ms-excel"; Response.WriteFile(FileName); Response.End(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)