Web >> Development >> ASP.Net >> HTML Controls >>  How to use InputImage control

<script runat="server"> Sub button1(Source As Object, e As ImageClickEventArgs) p1.InnerHtml="You clicked the smiley button!" End Sub Sub button2(Source As Object, e As ImageClickEventArgs) p1.InnerHtml="You clicked the angry button!" End Sub </script> <body> <form runat="server"> <p>Click on one of the images:</p> <p> <input type="image" src="/images/smiley.gif" OnServerClick="button1" runat="server" /> </p> <p> <input type="image" src="/images/angry.gif" OnServerClick="button2" runat="server" /> </p> <p id="p1" runat="server" /> </form> </body> </html>