FolderBrowserDialog in ASPX ?

G

Guest

Hi all

I am developping an applicatin in ASPX with C# codebehind, with VS 2003

Is it possible to include a FolderBrowserDialog on my page? I would like that when a visitor click on a button, a FolderBrowserDialog appears, he selects a folder, and when he click "Ok" in the dialog, i get back the path of the folder

As far as i searched it seems to be impossible, but on Hotmail, when you create a new mail, and when you join a file, there's a button on the page, and when you click on it you have a FolderBrowserDialog that appears, and the page gets back the path of the selected file, so it is possible

Does anyone have a clue? Maybe it is possible with other langages? CGI? JS? VBS

Thanks for help

Florent
 
G

Guest

do you need to select a folder or file?

for file, you can use File Field html control (ie, <input type=file/>)

hth
Av.
 
P

Patrice

This is client side and you can't do that with HTML alone. You'll have to
use a Java, ActiveX or .NET control depending on your audience...

The input type="file" tage (htmlInputFile control) let's you select a
*file*. You can't programmaticaly define the value (for safety reasons). You
can't select a whole folder probably for the same reason. If ther e is only
a couple of files in the folder, you could display several htmlInputFile
controls so that the user can select the files one by one but still upload
them in a single server round trip.

Patrice

Florent said:
Hi all,

I am developping an applicatin in ASPX with C# codebehind, with VS 2003.

Is it possible to include a FolderBrowserDialog on my page? I would like
that when a visitor click on a button, a FolderBrowserDialog appears, he
selects a folder, and when he click "Ok" in the dialog, i get back the path
of the folder.
As far as i searched it seems to be impossible, but on Hotmail, when you
create a new mail, and when you join a file, there's a button on the page,
and when you click on it you have a FolderBrowserDialog that appears, and
the page gets back the path of the selected file, so it is possible.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top