2

is there a folder dialog control in asp.net?
i want the user to press a button and select a folder (not a file). i tried using the input in this way:

 <input type="file" runat="server" id="d" />

but it enabled me to browse a file and not a folder.
any help?

4
  • 2
    What are you actually trying to achieve? Commented May 4, 2010 at 12:38
  • i want the user to choose his own folder in which files will be automatically saved in. thats it... Commented May 4, 2010 at 12:45
  • Where are the files coming from? Commented May 4, 2010 at 12:50
  • the folders are located on the server and the files are located at the client side. so a client chooses a folder on the server and upload his files there. Commented May 5, 2010 at 5:13

2 Answers 2

2

You would have to build something like this; use the AJAX control toolkit modal popup extender to display the window to the user, then build the UI yourself. to show the root and subfolders. Maybe a treeview to represent this. It's doable, as long as you are talking folders on the web server.

If you are talking folder on the client's machine, you would need active X or silverlight. So it depends on what you are looking for.

HTH.

Sign up to request clarification or add additional context in comments.

Comments

0

There is no native way to do this in HTML - you would have to write something custom (perhaps using ActiveX or Silverlight) that would allow you to do this.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.