阅读背景:

ASP。NET MVC下载图片而不是在浏览器中显示

来源:互联网 

Rather than displaying a PNG in the browser window, I'd like the action result to trigger the file download dialogue box (you know the open, save as, etc). I can get this to work with the code below using an unknown content type, but the user then has to type in .png at the end of the file name. How can I accomplish this behavior without forcing the user to type in the file extension?Rather than displaying a PNG in the browser win




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: