Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HttpContext.Current.Response.Clear();
- HttpContext.Current.Response.AddHeader("Content-Disposition", "inline;filename=" + Uri.EscapeDataString(filename));
- HttpContext.Current.Response.ContentType = "application/vnd.ms-excel";
- HttpContext.Current.Response.Charset = "";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement