在文件上传控制中打开特定目录 [英] Open a specific directory in Fileupload Control

查看:72
本文介绍了在文件上传控制中打开特定目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在项目中使用文件上传控件.
我只想在每次单击文件上传控件的浏览按钮时打开特定的虚拟目录.

任何人都可以推荐相同的内容.

谢谢

问候,
Vamshi.

Hi,

i am using a file upload control in my project.
I just want to open specific virtual directory everytime on click of browse button of file upload control.

Can anyone suggeset on the same.

Thank you,

Regards,
Vamshi.

推荐答案

如果它是Winforms项目,则
If it''s a winforms project then this will help you (the InitialDirectory property).

If it''s a web form, then I don''t believe this is possible as it would present a security risk. (it could possibly be used to detect the presence of a given directory on a website visitor''s machine)


这篇关于在文件上传控制中打开特定目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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