View Single Post
  #5 (permalink)  
Old August 25th, 2014, 10:08 AM
JeffPalley JeffPalley is offline
Registered User
Points: 33, Level: 1
Points: 33, Level: 1 Points: 33, Level: 1 Points: 33, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Aug 2014
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default I sent you the wrong Containers.aspx file

... i.e., without the full panel code.

Here's the right Containers.aspx file ...

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Containers.aspx.vb" Inherits="Containers" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
<head runat="server">
    <form id="form1" runat="server">
      <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="true" Text="Show Panel" />
      <asp:Panel ID="Panel1" runat="server" visible="False" Width="500px" >
        <asp:Wizard ID="Wizard1" runat="server" Width="500px" ActiveStepIndex="0">
            <asp:WizardStep runat="server" title="About You" ID="YourName">
              <asp:Label ID="YourNamex" runat="server" Text="Type your name"></asp:Label>
              <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            <asp:WizardStep runat="server" title="Favorite Language">
              <asp:DropDownList ID="FavoriteLanguage" runat="server" AutoPostBack="True">
                <asp:ListItem>Visual Basic</asp:ListItem>
            <asp:WizardStep runat="server" StepType="Complete" Title="Ready">

This one works fine (with the default server being Chrome) until I press "Finish" ... at which point it displays a horrible mess of errors that probably makes sense to you, but not to me. I am very sorry that my errors are taking up so much of your time -- but it is highly apreciated.


P.S. Here's the Containers.aspx.vb file that goes with it:


Partial Class Containers
Inherits System.Web.UI.Page

Dim Result As Object

Protected Sub CheckBox1_CheckedChanged(sender As Object, e As System.EventArgs) Handles CheckBox1.CheckedChanged
Panel1.Visible = True
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.ID
Result.Text &= "<br />Your favorite language is " & FavoriteLanguage.SelectedValue
End Sub

Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load

End Sub

End Class

Reply With Quote