In ASP.NET 2.0, Can I have a button to browse client folder and pick a path (not file)?
-
19-08-2019 - |
Question
I already used a hidden file upload control to browse file and grab the file path, without really uploading it.
My question is, is there a way in ASP.NET, create a folder browse button, when it is clicked, just to browse client file system, and user can click the path and choose that path not file?
Solution
No, you can't do with standart ASP.NET controls which map to HTML controls. Probably it's possible if you are using Flash, Silverlight or Java applets.
OTHER TIPS
Unfortunately no, the only file-related HTML control is the file picker (<input type="file">).
Use Flash for this task and invoke this actions via JS
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow