Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How could i select folder or file from the asp.net web application?

Tags:

c#

asp.net

I have an ASP.NET web application and I need to put data from the web page to the output text file.

I would like to give user an ability to select the folder where the file will be saved. For example, when the user clicks on the 'Browse' button the select folder dialog should appear.

Is it possible to implement such thing in the asp.net web application?

like image 834
Sergey Smelov Avatar asked Feb 20 '10 13:02

Sergey Smelov


1 Answers

Using <input type="file"> the user can only browse the files on his computer. There's no way for him to see folders on the server unless you give him a list or treeview structure so that he can choose from. Here's an example of building such a treeview.

like image 62
Darin Dimitrov Avatar answered Sep 24 '22 22:09

Darin Dimitrov