如何打开保存asp.net中windows文件的Dialogbox [英] How open save Dialogbox of windows file in asp.net

查看:68
本文介绍了如何打开保存asp.net中windows文件的Dialogbox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用asp.net并在本地IIS服务器上托管我们的站点,该服务器是All local lan用户的共享。

我想打开我的电脑的Windows目录并保存一个用户想要保存的文件。





我想像windows应用程序openfiledialog一样工作吗?



请帮助..



谢谢

I m working on asp.net and hosted our site on local IIS server which is share for All local lan user.
I want to open windows directory of my PC and save a selected file which is user want to save .


I would like to work like a windows Application openfiledialog work ?

Please Help ..

Thanks

推荐答案

您可以使用HTTP响应的TransmitFile(path)方法。



参考



http://dipansaha.wordpress.com/2012/12/06/download-file-with-save-dialog-box-using-c/ [ ^ ]



希望这可以帮助你
You can use TransmitFile("path") method of the HTTP Response.

Refer

http://dipansaha.wordpress.com/2012/12/06/download-file-with-save-dialog-box-using-c/[^]

Hope this helps you


这篇关于如何打开保存asp.net中windows文件的Dialogbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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