文件路径在asp.net中选择控件 [英] File Path Choose Control in asp.net

查看:121
本文介绍了文件路径在asp.net中选择控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我是在Asp.net的网络应用程序上开发的。我想将记录导出到excel文件。



这里我想选择导出的文件路径。



是否有文件选择控件asp.net。



如果有人知道。,你能否提出解决方案。



谢谢

Dhanasekaran Murugesan

Hi,

I have developed on web application in Asp.net. i want to export the records to excel file.

Here i want choose the file path for the export.

Is there any file choose control in asp.net.

If any knows ., can you please suggest the solution.

Thanks
Dhanasekaran Murugesan

推荐答案

您只能将文件写入客户端浏览器,用户将选择打开或另存为,如果他们选择另存为,他们将获得路径对话框以选择保存位置。



如果您想保存在服务器上,则需要使用System.IO命名空间,用于在服务器上构建目录列表等,并为客户端提供一种选择方式。如果您谷歌搜索asp.net服务器文件浏览器,您可能会找到示例代码,但您需要查看类似System.IO.Directory等的类。
You can only write the file to the client browser and the user will select to open or save as, and if they select to "save as" they'll be given a path dialogue to select where to save.

If you mean to save on the server you'd need to use the System.IO namespace to build up a list of directories etc on your server and give the client a way of choosing. If you google for "asp.net server file browser" you'll probably find sample code, but you need to look at classes like System.IO.Directory etc.


这篇关于文件路径在asp.net中选择控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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