Response.ClearContent(); Response.AddHeader("content-disposition", "attachment; filename=file.xls"); Response.ContentType = "application/excel";
.xls
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)