上载文件夹中的文件以获取特定的下拉列表值 [英] Upload Files in a folder for a particular dropdownlist value

查看:54
本文介绍了上载文件夹中的文件以获取特定的下拉列表值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何上载具有特定下拉列表值的文件,以及如何将其保存在为该特定下拉列表值分配的文件夹中.对于下一个下拉值,我需要上传其他文件并保存在另一个文件夹中.

how to upload files for a particular dropdownlist value and save it in a folder allotted for that particular dropdown value. For the next drop down value i need to upload other files and save in another folder.

推荐答案

您可以使用fileuploder控件来定位文件夹.

您还可以使用C#文件和目录控件创建文件夹运行时.

请参见下面的示例代码.

创建文件夹.
System.IO.Directory.CreateDirectory("D:\ TempFolder");

Directory,File,DirectoryInfo和FileInfo用于将文件存储在特定位置.
You can use fileuploder control to locate folder.

also you can create folder runtime using C# file and directory control.

Please see below sample code.

To Create Folder.
System.IO.Directory.CreateDirectory("D:\TempFolder");

Directory, File, DirectoryInfo, and FileInfo use to store files at particular location.


这篇关于上载文件夹中的文件以获取特定的下拉列表值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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