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

<script runat="server">
    protected void Button1_ServerClick(object sender, EventArgs e)
    {
        Response.Write("Witaj " + Text1.Value);
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Korzystanie z kontrolek serwerowych HTML</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        What is your name?<br />
        <input id="Text1" type="text" runat="server" />
        <input id="Button1" type="button" value="Zatwierdź" runat="server" 
         onserverclick="Button1_ServerClick" />
    </div>
    </form>
</body>
</html>
