Response.Clear(); Response.AddHeader("content-disposition", "attachment; filename=nameOfExcelFile.xls"); Response.ContentType = "application/vnd.ms-excel"; Response.WriteFile(FileFullPath, true);//get FileFullPath by server.MapPath which u have created Response.Flush(); Response.End();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)