Advertisement
Guest User

Untitled

a guest
May 31st, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. HttpContext.Current.Response.Clear();
  2. HttpContext.Current.Response.AddHeader("Content-Disposition", "inline;filename=" + Uri.EscapeDataString(filename));
  3. HttpContext.Current.Response.ContentType = "application/vnd.ms-excel";
  4. HttpContext.Current.Response.Charset = "";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement