文件上传控制中的疑问 [英] Doubts in file upload control

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

问题描述

海,


我对文件上传控件有一些疑问,假设我们假设存在一个下拉列表,其中包含一些用户名列表,然后我们放置了一个文件上传控件和一个按钮,我的疑问是我们是否要在下拉列表中选择一个特定的用户并单击文件上传控件,它应该选择一个文件并单击按钮.文件将保存在某个目录中.假设如果我们从下拉列表中选择不同的用户名并选择一个文件并单击按钮,则所选文件应保存在其他目录中文件夹.我该怎么做.

在此先感谢

Hai,


I have some doubts in file upload control.Suppose we assume that there is one dropdownlist with the list of some user names.After that we put one file upload control and a button.My doubt is if we select a particular user in dropdownlist and click the file upload control.It should select a file and click on button.File will be saved in some directory.Suppose If we select different username from drop down list and select a file and click on button.That selected file should be save in different folder.How can I do this.

Thanks in Advance

推荐答案

filename = fulPhoto.PostedFile.FileName;
            path = Server.MapPath("~/Directory/") + fulPhoto.FileName;




您必须通过下拉菜单中的所选项目来更改目录名称?




you have to change directory name by selected item of dropdown?


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

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