currently I have these two elements, and it works fine:
<asp:FileUpload id="fileUpload" style="" runat="server" />
<asp:Button ID="upload_Button" runat="server" Text="Upload"></asp:Button>
The code-behind looks like:
Private Sub upload_Button_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles upload_Button.Click
I'd like to have only one button.
I've tried to do that (suposing I can hide the visibility of FileUpload element):
<asp:Button ID="upload_Button" runat="server" Text="Upload" OnClientClick="document.getElementById('fileUpload').click();"></asp:Button>
But after selecting the Local file it didn't call Sub upload_Button_Click.
What should be done to accomplish that task?