如何为选定的下拉列表打开特定的目录文件夹 [英] How to open particular directory folder for the selected drop down list

查看:86
本文介绍了如何为选定的下拉列表打开特定的目录文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

海,


我有一个包含5个项目的下拉列表,一个文件上传控件和一个按钮.如果我从下拉列表中选择一个项目,然后单击文件上传控件,它应该转到特定的文件夹,对于其他项目也应如此.请帮我



谢谢与问候
Sridharan.C

Hai,


I have a drop down list with 5 items and a file upload control and a button.If i select a item from drop down and click on file upload control it should go to particular folder and similarly for other items.How can I do this.Plz help me



Thanks and Regards
Sridharan.C

推荐答案

处理Upload按钮的Click事件,然后从下拉列表中读取当前设置.
您应该能够保存文件(使用 FileUpload.SaveAs方法 [ ^ ])到服务器上的任何文件夹,前提是您具有适当的权限.
Handle the Upload button Click event, then read the current setting from the drop down.
You should be able to save the file (using the FileUpload.SaveAs method[^]) to any folder on your server, provided you have the appropriate permissions.


这篇关于如何为选定的下拉列表打开特定的目录文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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