<%@ Page Language="VB" %>

<script runat="server">
    Protected Sub CheckBox1_CheckedChanged(ByVal sender As Object, _
      ByVal e As System.EventArgs)
        Response.Write("Dziękujemy za dar!")
    End Sub
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Kontrolka CheckBox</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:CheckBox ID="CheckBox1" runat="server" Text="Wpłać 10 zł w naszej sprawie!" 
         OnCheckedChanged="CheckBox1_CheckedChanged" AutoPostBack="true" />    
    </div>
    </form>
</body>
</html>
