473,806 Members | 2,771 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FolderBrowserDi alog in ASPX ?

Hi all

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

Is it possible to include a FolderBrowserDi alog on my page? I would like that when a visitor click on a button, a FolderBrowserDi alog 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 FolderBrowserDi alog 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 3622
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*******@disc ussions.microso ft.com> a écrit dans le message de
news:E4******** *************** ***********@mic rosoft.com...
Hi all,

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

Is it possible to include a FolderBrowserDi alog on my page? I would like that when a visitor click on a button, a FolderBrowserDi alog 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 FolderBrowserDi alog 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
1877
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 the FolderBrowserDialog after I opened the database connection no folders will be displayed in the FolderBrowserDialog. It's empty.
25
2241
by: | last post by:
Hi, The following code shows the FolderBrowserDialog = broken. FolderBrowserDialog folderDialog = new FolderBrowserDialog(); folderDialog.ShowNewFolderButton = false; folderDialog.ShowDialog(); Setting ShowNewFolderButton to false does bugger all. If I set this to false it is STILL shown. Genius.
1
14521
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 = System.Environment.SpecialFolder.MyComputer; folderBrowserDialog1.SelectedPath = "D:\\"; folderBrowserDialog1.ShowDialog();
9
2427
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 folderBrowserDlg; OpenFileDialog openFileDlg;
0
1592
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 FolderBrowserDialog dialog to select a folder. This works fine if we do not preceed the dialog with a CString.Format call. When we have the call, the folder browser dialog has the buttons but not the folder tree. I am able to reproduce the problem by...
4
4021
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 I can't use 1.1 with VS.net 2002. Upgrading my VS.net at this point is not an option. So, how can I trick the OpenFileDialog to act as a FolderBrowserDialog? Or, is there some other way to accomplish this. Thanks, Mark
6
1796
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 component (or even a COM) available to select from in the "Customize Toolbox" window! I noticed there is a RESET button on the "Customize Toolbox" window but I have a number of custom controls it said it would delete. I was hesitant about that...
2
3167
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 is hidden behind them. The problem seems to occur only after using the FolderBrowserDialog. Has anyone seen this before? Thanks
3
7085
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 or do I need to write my own? It would be nice to get the folder icons like they are on each individual system. thanks mike
0
9719
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9598
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10111
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5683
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.