473,383 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

FolderBrowserDialog in ASPX ?

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
Nov 18 '05 #1
3 3595
do you need to select a folder or file?

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

hth
Av.
Nov 18 '05 #2
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" <an*******@discussions.microsoft.com> a écrit dans le message de
news:E4**********************************@microsof t.com...
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

Nov 18 '05 #3
This will do fine, thanks a lot
Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Anja | last post by:
I have installed the new Visual Studio 2003 and implemented the FolderBrowserDialog. Everything works fine, if I open the FolderBrowserDialog before opening a Database Connection. If I open...
25
by: | last post by:
Hi, The following code shows the FolderBrowserDialog = broken. FolderBrowserDialog folderDialog = new FolderBrowserDialog(); folderDialog.ShowNewFolderButton = false;...
1
by: alf | last post by:
Hi, I am using a FolderBrowserDialog to allow the user to select a folder as follows: FolderBrowserDialog folderBrowserDialog1 = new FolderBrowserDialog(); folderBrowserDialog1.RootFolder =...
9
by: hhh12347 | last post by:
FolderBrowserDialog crashes on my Windows 2000 computer. Here is a C# test program: using System; using System.Windows.Forms; public class TestForm : Form { FolderBrowserDialog...
0
by: Tommy Clark | last post by:
I am using Microsoft Development Environment 2003 Version 7.1.3088 and .NET Framework 1.1 Version 1.1.4322 SP1. I have an MFC application that we have ported to .NET and have added the...
4
by: Mark | last post by:
Hello, I'm running VS.net 2002 with .net framework 1.0 I want to use 'System.Windows.Forms.FolderBrowserDialog' which is available in .net framework 1.1. From reading posts, I understand that...
6
by: John Krueger | last post by:
The FolderBrowserDialog control in my toolbox has vanished! I did not delibratly remove it and it is just not there anymore. I tried to add it back to the toolbox but there isn't even a .NET...
2
by: Marcel Brekelmans | last post by:
Hi, I'm trying to display a MessageBox after a FolderBrowserDialog. I see that it gets displayed, but not activated. The form is not in front and when I have some other forms open the MessageBox...
3
by: Michael Howes | last post by:
I need a folder selection tree on my windows form. I don't see a way to add the FolderBrowswerDialog as a Control and add it to my form's controls collection. Is there a way to accomplish this...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.