Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Before when i used to upload a file,all file were stored in NewFolder1.Now before uploading the file,the user selects certain field from the dropdownload list.eg user will select school,department,category and locations from different dropdownlist.so for each school department,category and location subfolders needs to be created depending on what the user chooses.For Example School X,department Y,category Z and location LA,the file will be uploaded in Newfolder1/X/Y/Z/LA.Any ideas on how to do it during runtime...

Thanks
Posted
Comments
Member 9291223 5-Aug-12 22:15pm    
any sample could would be highly appreciable and it also needs to check if that directory does not exists then create one o other wise use the existing 1

1 solution

Directory.CreateDirectory, so long as you give your ASP.NET user the correct rights to the file system.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900