Click here to Skip to main content
15,911,890 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi,

I want to Bulk upload the contents of folder(which is basically moving folder structure from any where in my PC to specific folder)
For this I want to provide a window for folder selection (as we do for file upload)
On upload I insert records in DB (parent child tree which is working fine)

As of now I have given a text box in which I paste the folder path. And functionality is working great. I just need the Window for folder selection.


I have tried the follwing

Shell Stuff[^]

This[^]

This[^]


It throws error Permission Denied!!

Doing this is difficult in asp.net I guess, if its not at all feasible can anyone suggest some alternative to pasting path in text box.
Posted

1 solution

Well, your links are just for one method that will only work in IE. You cannot write this code in C#. ASP.NET code runs only on the server, not on the client browser. If that's what you did, it's no surprise that it doesn't work.


Google for "javascript folder browser[^]" for examples of doing it in client-side javascript code.
 
Share this answer
 
v2

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