<%@ Page Language="VB" %>
<script runat="server">
Sub Page_Load(sender As Object,e As EventArgs)
IF NOT Page.IsPostBack() Then
Me.InputImage1.Src = "images/mygirl.jpg"
Me.InputImage1.Alt = "My Girl"
Me.InputImage1.Style.Add("Width","200px")
End IF
End Sub
Sub Image_OnClick(sender As Object, e As ImageClickEventArgs)
Me.InputImage1.Src = "images/mygirl2.jpg"
Me.InputImage1.Alt = "My Girl"
Me.InputImage1.Style.Add("Width","200px")
End Sub
</script>
<html>
<head>
</head>
<body>
<form runat="server">
<input type="image" id="InputImage1" OnServerClick="Image_OnClick" runat="server">
<hr />
<asp:Label id="lblText1" runat="server"></asp:Label>
</form>
</body>
</html>