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

<script runat="server">

    protected void WizardStep3_Activate(object sender, EventArgs e)
    {
        Label1.Text = "Imię: " + fnameTextBox.Text.ToString() + "<br>" +
           "Nazwisko: " + lnameTextBox.Text.ToString() + "<br>" +
           "E-mail: " + emailTextBox.Text.ToString();
    }

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Kontrolka serwerowa Wizard</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:Wizard ID="Wizard1" runat="Server">
       <WizardSteps>
          <asp:WizardStep ID="WizardStep1" runat="server"
           Title="Podaj dane osobowe">
             Imię:<br />
             <asp:TextBox ID="fnameTextBox" runat="server"></asp:TextBox><br />
             Nazwisko:<br />
             <asp:TextBox ID="lnameTextBox" runat="server"></asp:TextBox><br />
             E-mail:<br />
             <asp:TextBox ID="emailTextBox" runat="server"></asp:TextBox><br />
          </asp:WizardStep>
          <asp:WizardStep ID="WizardStep2" runat="server"
           Title="Informacje o członkostwie">
             Czy jesteś już członkiem grupy?<br />
             <asp:RadioButton ID="RadioButton1" runat="server" Text="Tak"
              GroupName="Member" />
             <asp:RadioButton ID="RadioButton2" runat="server" Text="Nie"
              GroupName="Member" />
          </asp:WizardStep>
          <asp:WizardStep ID="WizardStep3" runat="server" Title="Podane informacje"
           StepType="Complete" OnActivate="WizardStep3_Activate">
             <asp:Label ID="Label1" runat="server" />
          </asp:WizardStep>
       </WizardSteps>
    </asp:Wizard>
    </form>
</body>
</html>
