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/>