![]() ![]() When I hosted my own site, I could do this by setting the HTTP Headers with "content-disposition" to force the Download File dialog. In all cases, however, I wanted the file to be saved to the client's workstation, rather than simply being displayed by the browser. ![]() I found that for most users (with IE) the correct application was automatically used to view the document from within their browser (such as Word types like. On my personal site ( ), I allow the user to download my resume in various formats including Microsoft Word, HTML, Rich Text and Plain Text. In addition to setting the MIME types, the example shows how to force the Download File dialog that allows the user to either run or save the file, even if the file type would normally display in the browser's window. This example illustrates a simple technique to download files of any type from you web application to the client browser. Print Add To Favorites Email To Friend Rate This Articleĭownloading Files - Forcing the File Download DialogĮver try to force the "Download File" dialog in a clients's browser window when you download files that may be supported with a MIME type? Here is an example that works with many versions of IE.Īverage Rating: This article has not yet been rated. ASP.NET Tutorials » Downloading Files - Forcing the File Download Dial. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |