Javascrip:
function chooseFile() {
document.getElementById("FileUpload1").click();
}
Bash
/head> body> form id="form1" runat="server"> div> div style="height: 0px; overflow: hidden"> asp:FileUpload ID="FileUpload1" runat="server" /> /div> asp:ImageButton ID="ImageButton1" runat="server" OnClientClick="chooseFile();" ImageUrl="btnlogin.png" /> /div> /form> /body> /html>
Bryian TanRank #396 · 6.3K reputationPosted Apr 23, 2017, 5:45 PM EDT