在C#Click按钮生成Pdf但我需要在点击按钮下载Pdf并保存在文件夹中 [英] In C# Click Button Generate The Pdf But I Need To Download The Pdf In Click Button And Save In Folder

查看:227
本文介绍了在C#Click按钮生成Pdf但我需要在点击按钮下载Pdf并保存在文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C#mvc4点击按钮生成pdf,但我需要在点击按钮下载pdf并保存在文件夹中请帮助我。

先谢谢

in C# mvc4 click button generate the pdf but i need to download the pdf in click button and save in folder pls help me.
Thanks in Advance

推荐答案

您无法将文件直接保存到文件夹,因为浏览器不允许这样做。您可以显示下载对话框,但用户将决定他/她将存储的位置。
You cannot save the file directly to a folder as browsers won't allow this. You can show the download dialog, but user will decide where he/she will store.


这篇关于在C#Click按钮生成Pdf但我需要在点击按钮下载Pdf并保存在文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆