You need to append the HTTP response header “Content-Disposition”
Response.AppendHeader("content-disposition", "attachment; filename=\"" + fileName +"\"");
More Related Contents:
- Why is an OPTIONS request sent and can I disable it?
- Uses of content-disposition in an HTTP response header
- How to set HTTP headers (for cache-control)?
- What’s the difference between a POST and a PUT HTTP REQUEST?
- How to detect server-side whether cookies are disabled
- ‘Refresh’ HTTP header
- HTTP status code for update and delete?
- Why is it common to put CSRF prevention tokens in cookies?
- Which status code should I use for failed validations or invalid duplicates?
- Easy HTTP requests with gzip/deflate compression
- CORS request with Preflight and redirect: disallowed. Workarounds?
- PHP_SELF vs PATH_INFO vs SCRIPT_NAME vs REQUEST_URI
- How to redirect user’s browser URL to a different page in Nodejs?
- Why does my web server software disallow PUT and DELETE requests?
- Send request to cURL with post data sourced from a file
- What does “pending” mean for request in Chrome Developer Window?
- Difference between HTTP redirect codes
- Is a slash (“/”) equivalent to an encoded slash (“%2F”) in the path portion of an HTTP URL
- Whats Content-Type value within a HTTP-Request when uploading content?
- Save cookies between two curl requests
- Can I somehow do a synchronous HTTP request via NSURLSession in Swift
- How do I allow a PUT file request on Nginx server?
- Go client program generates a lot a sockets in TIME_WAIT state
- CURL Command Line URL Parameters
- Is REST DELETE really idempotent?
- What is a safe maximum length a segment in a URL path should be?
- Go http.Get, concurrency, and “Connection reset by peer”
- What is the usefulness of PUT and DELETE HTTP request methods?
- HTTP 400 (bad request) for logical error, not malformed request syntax
- What is the proper HTTP response to send for requests that require SSL/TLS