string Path = @"~\Content\templates\SAT Door Width 062012.xls"; string contentType = "application/ms-excel"; HttpContext.Response.Buffer = true; HttpContext.Response.Clear(); HttpContext.Response.AddHeader("content-disposition", "attachment; filename=" + fileName); HttpContext.Response.ContentType = contentType; HttpContext.Response.WriteFile(HttpContext.Server.MapPath(Path));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)