<%@ Page Language="VB" %>
<script runat="server">
Sub btSubmit_Click(Sender As Object, E As EventArgs)
lblMessage.Text = Cint(tbNumber1.Text) * Cint(tbNumber2.Text)
End Sub
</script>
<HTML>
<HEAD>
</HEAD>
<BODY>
<form runat="server">
Number 1: <asp:textbox id="tbNumber1" runat=server/>
Number 2: <asp:textbox id="tbNumber2" runat=server/>
<asp:button id="btSubmit" Text="Submit" OnClick="btSubmit_Click" runat=server/>
<asp:label id="lblMessage" font-size="20pt" runat=server/>
</form>
</BODY>
</HTML>
|