How do I add a openfiledialog to a webform?

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
Back
Top