Imar, here's complete code via Notepad.
Complete - Containers.aspx
<%@ Page Language="
VB" AutoEventWireup="false" CodeFile="Containers.aspx.
vb" Inherits="Demos_Containers" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True"
Text="Show Panel" />
<asp:Panel ID="Panel1" runat="server" Visible="False">
<asp:Wizard ID="Wizard1" runat="server" ActiveStepIndex="0" Width="500px">
<WizardSteps>
<asp:WizardStep runat="server" title="About You">
<asp:Label ID="Label1" runat="server" Text="Type your name"></asp:Label>
<asp:TextBox ID="YourName" runat="server"></asp:TextBox>
</asp:WizardStep>
<asp:WizardStep runat="server" title="Favorite Language" StepType="Finish">
<asp:DropDownList ID="FavoriteLanguage" runat="server">
<asp:ListItem>C#</asp:ListItem>
<asp:ListItem>Visual Basic</asp:ListItem>
<asp:ListItem>CSS</asp:ListItem>
</asp:DropDownList>
</asp:WizardStep>
<asp:WizardStep runat="server" StepType="Complete" Title="Result" ID="Result" Label="Result">
</asp:WizardStep>
</WizardSteps>
</asp:Wizard>
</asp:Panel>
</div>
</form>
</body>
</html>
Complete - Containers.aspx.
vb
Partial Class Demos_Containers
Inherits System.Web.UI.Page
Protected Sub CheckBox1_CheckedChanged(sender As Object, e As System.EventArgs) Handles CheckBox1.CheckedChanged
Panel1.Visible = CheckBox1.Checked
End Sub
Protected Sub Wizard1_FinishButtonClick(sender As Object, e As System.Web.UI.WebControls.WizardNavigationEventArg s) Handles Wizard1.FinishButtonClick
Result.Text = "Your name is " & YourName.Text
Result.Text &= "<br />Your favorite language is " & FavoriteLanguage.SelectedValue
End Sub
End Class
Complete - Error List
Error 1 'Text' is not a member of 'System.Web.UI.WebControls.WizardStep'. C:\BegASPNET\Site\Demos\Containers.aspx.
vb 10 5 C:\BegASPNET\Site\
Error 2 'Text' is not a member of 'System.Web.UI.WebControls.WizardStep'. C:\BegASPNET\Site\Demos\Containers.aspx.
vb 11 5 C:\BegASPNET\Site\
Message 3 Validation (ASP.Net): Attribute 'Label' is not a valid attribute of element 'WizardStep'. C:\BegASPNET\Site\Demos\Containers.aspx 30 91 C:\BegASPNET\Site\
Had same "Text is not a member .............. message on pg.129 Try It Out.
Clicked appreciation icon.
Tom Potter