Uses of content-disposition in an HTTP response header
// Download the file
Response.AppendHeader("content-disposition", "attachment; filename=" + fileName);
// Display the file in browser
Response.AppendHeader("content-disposition", "inline; filename=" + fileName);
Reference:
http://stackoverflow.com/questions/1012437/uses-of-content-disposition-in-an-http-response-header
No comments:
Post a Comment