Response.Clear() Response.Buffer = True Response.AddHeader("content-disposition", "attachment;filename=MyExcelData.xls") Response.Charset = "" Response.ContentType = "application/vnd.ms-excel" Response.Output.Write(myDataString) Response.Flush() Response.End()
Response.AddHeader("Content-Disposition", "inline;filename=" + fileName);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)