<%@ Page Language=VB Debug=true %>
<script runat=server>
Sub SubmitBtn_Click(Source As Object, E as EventArgs)
MyMessage.InnerHTML = "Hello " & YourName.Value
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>Displaying a Graphic on an HTMLButton Control</TITLE>
</HEAD>
<BODY>
<form runat="server">
<Span
id="MyMessage"
runat=server
>
</Span>
<BR>
Name: <BR>
<Input
id="YourName"
runat="server"
type="text"
>
<BR>
<BR><BR>
<button
id="Button1"
runat="server"
onserverclick="SubmitBtn_Click"
>
<img
src="http://www.java2java.com/style/download.png"
/>
</button>
</Form>
</BODY>
</HTML>
|