jbhtgh
asked on
Need to create a folder dialog where I can select one folder in a vb.net/asp.net app
I need to be able to select a folder, using something like a common dialog, in an asp.net /vb.net app
ASKER
this is a web app (vb.net/asp.net)
isn't folder browser dialog a winforms control ?
did you want to create the folder in server or on client machine ?
ASKER
I want to select (not create) the folder on the client machine
then there is a control available file browser. just place it in your page.
open the tool box, and use File Upload"
ASKER
File upload is the behavior I want as far as being able to navigate thru files, but the end result is to select a file. I want to select a directory, then do something (doesn't matter) to files in that directory.
I am not sure where to find "file browser" , it's not in my toolbox and not available to be added ("choose items")
which version of visual studio is you are using ?
the attached image is from vs 2008 ide.
there is no direct method to open the folder.
you can follow the below links
http://bytes.com/topic/asp-net/answers/778370-browse-open-folder-asp-net
http://www.dotnetspider.com/forum/39862-ASP-Net-Code-open-folder-browser-dialog.aspx
fileupload.JPG
the attached image is from vs 2008 ide.
there is no direct method to open the folder.
you can follow the below links
http://bytes.com/topic/asp-net/answers/778370-browse-open-folder-asp-net
http://www.dotnetspider.com/forum/39862-ASP-Net-Code-open-folder-browser-dialog.aspx
fileupload.JPG
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Please use the below code
First create a FolderBrowserDialog object
Dim FolderBrowserDialog1 As New FolderBrowserDialog
' Then use the following code to create the Dialog window
' Change the .SelectedPath property to the default location
With FolderBrowserDialog1
' Desktop is the root folder in the dialog.
.RootFolder = Environment.SpecialFolder.
' Select the C:\Windows directory on entry.
.SelectedPath = "c:\windows"
' Prompt the user with a custom message.
.Description = "Select the source directory"
If .ShowDialog = DialogResult.OK Then
' Display the selected folder if the user clicked on the OK button.
MessageBox.Show(.SelectedP
End If
End With
Regards
Avinash Desai