473,404 Members | 2,178 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,404 software developers and data experts.

How do I add a openfiledialog to a webform?

Hi:

How do I add a openfiledialog to a webform?

Thanks,
Nov 21 '05 #1
4 3372
Rachel,
How do I add a openfiledialog to a webform?

Normally you cannot, however you can look at the rich client samples

http://msdn.microsoft.com/msdnmag/is...h/default.aspx

I hope this helps,

Cor
Nov 21 '05 #2
"Rachel" <Ra****@discussions.microsoft.com> schrieb:
How do I add a openfiledialog to a webform?


If you are looking for the file upload dialog, use '<input
type="file".../>'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
Herfried:

Do you mean like this?
Private Sub btnBrowse_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnBrowse.Click
<input type="file".../>
End Sub

Rachel

"Herfried K. Wagner [MVP]" wrote:
"Rachel" <Ra****@discussions.microsoft.com> schrieb:
How do I add a openfiledialog to a webform?


If you are looking for the file upload dialog, use '<input
type="file".../>'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4
Ok, I figured it out, for clarification of those who may want to fix this
same problem.

1. Open the design area of the form and click on the HTML tab.

Right after the opening tag for the form:
<form id="Form1" method="post" runat="server">

2. Put the following code on the next line:
<input type="file">

3. Run the code in debug and the textbox and browse button will appear

4. Stop running the code.

5. Open your form in design mode and move the textbox and browse button to
where you would like to place it on your form.

"Herfried K. Wagner [MVP]" wrote:
"Rachel" <Ra****@discussions.microsoft.com> schrieb:
How do I add a openfiledialog to a webform?


If you are looking for the file upload dialog, use '<input
type="file".../>'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5

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

Similar topics

2
by: Juan Reyes | last post by:
Visual Studio - Webform - C# I need to open a dialog to pick up a file (just as IE does when you press "save as" with a FTP). ¿How can I do it? *** Sent via Developersdex...
3
by: bobrad | last post by:
MAYBE SOMEBODY CAM HELP I AM USING THE FOLLOWING CODE TO GET A LOCATION OF A FILE IN A WINFORM DIALOG OpenFileDialog openFileDialog = new OpenFileDialog(); OpenFileDialog.Filter = " Access...
2
by: don | last post by:
has anyone experienced problems with interactions between OpenFileDialog and FileStream? When I select "open" from an OpenFileDialog the subsequent calls to FileStream do not create a file. If I do...
4
by: Nagachandra Sekhar Grandhi | last post by:
I am facing a problem with OpenFileDialog. It is as follows. I opened OpenFileDialog dialog box and selected a folder in it. After selecting the folder when i tried to delete the same folder in...
8
by: e-mid | last post by:
why does not openFileDialog have closed event? i want to do something; as soon as the dialog closes. is there a way to do this?
1
by: smita | last post by:
Hello , I have a doubt....How can i open a OpenFileDialog on a button_click event. This button is present on a WebForm. regards, Smita.
6
by: barbara_dave | last post by:
Hi, All, I want to use the openfiledialog to open different extension files in different directory( only one type files at one time). I set the OpenFiledialog InitialDirectory and Filter...
8
by: marcus.kwok | last post by:
I am having a weird problem and I have can't figure out why it is happening. I create an OpenFileDialog and set a filename filter. When the dialog first opens, the filter works correctly, and...
1
by: sam | last post by:
OpenFileDialog appears to be "holding onto" the parent folder of a selected file until the application using the dialog quits. After creating a folder containing a file, I attempted to select...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.