احمد صدقی

احمد صدقی

  • NA
  • 106
  • 17.4k

I want to browse with imagebutton.

Apr 23 2017 11:22 AM
I want to browse with image button , i did it by taking fileupload & hide fileupload tool & appliying javascript but it did'nt work
Javascrip:
<script language="javascript" type="text/javascript">
function chooseFile() {
document.getElementById("FileUpload1").click();
}
</script>
</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>
 

Answers (1)