<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

    protected void plokinupp_Click(object sender, EventArgs e)
    {
        Label1.Text = (int.Parse(TextBox1.Text) * int.Parse(TextBox2.Text)).ToString();
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Proovileht</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
       Leht avati: <%=DateTime.Now %>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
       <asp:UpdatePanel ID="updatepanel1" runat="server" >
         <ContentTemplate>
            Plokk loodi <%=DateTime.Now %>
             <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> x
             <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
            <asp:Button ID="plokinupp" runat="server" text="=" onclick="plokinupp_Click"/>
             <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
         </ContentTemplate>
       </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>