As the two persons above have said you can either use the sessionvariables or getting the data directly from the control. The second approach is in my oppinion the best one for you here is a code example for the code in the aspx page:
1 <asp:Wizard ID="Wizard1" runat="server" onactivestepchanged="Wizard1_ActiveStepChanged">
2 <WizardSteps>
3 <asp:WizardStep ID="WizardStep1" Title="Step 1" runat="server">
4 <asp:TextBox ID="FirstNameTextBox" runat="server"></asp:TextBox>
5 <asp:TextBox ID="LastNameTextBox" runat="server"></asp:TextBox>
6 </asp:WizardStep>
7 <asp:WizardStep ID="WizardStep2" Title="Step 2" runat="server">
8 <asp:Label ID="CompleteNameLabel" runat="server" Text="Label"></asp:Label>
9 </asp:WizardStep>
10 </WizardSteps>
11 </asp:Wizard>
Then in your code behind (the C# code) you will need the following code:
1 /// <summary>
2 /// This method is called everytime the user changes the active steps.
3 /// Moves forwards or backwards in the wizard.
4 /// </summary>
5 protected void Wizard1_ActiveStepChanged(object sender, EventArgs e)
6 {
7 //You have to check what step the user is going to
8 //Step 0 is where you have the textboxes for entering names and
9 //step 1 is where you want the greeting. The first step is always 0
10 //not 1 hence the second step is 1
11 if (Wizard1.ActiveStepIndex == 1)
12 CompleteNameLabel.Text = "Hello " + FirstNameTextBox.Text + " " + LastNameTextBox.Text;
13 }
Note that the wizard uses the event onactivestepchanged. To generate this in the codebehind (the easiest way) then in design mode click your wizard and in the propertys click the yellow flash to display the elements then double click in the empty field next to the text ActiveStepChanged.
I hope this helps!
Best regards
Per
If my answer was useful then please mark as answer. Thank you.