<script  runat="server">
Sub button1(Source As Object, e As ImageClickEventArgs)
      p1.InnerHtml="You clicked the on button!"
End Sub
Sub button2(Source As Object, e As ImageClickEventArgs)
      p1.InnerHtml="You clicked the off button!"
End Sub
</script>

<html>
<body>

<form runat="server">
<p>请点击其中的一幅图片:</p>
<p>
<input type="image" src="/i/eg_bulbon.gif"
OnServerClick="button1" runat="server" width="45" height="60" />
</p>
<p>
<input type="image" src="/i/eg_bulboff.gif"
OnServerClick="button2" runat="server" width="45" height="60" />
</p>
<p id="p1" runat="server" />
</form>

</body>
</html>