C
chessitguy
I have a simple Wizard
page.aspx
<asp:Wizard ID="Wizard1" runat="server" ActiveStepIndex="0" >
<WizardSteps>
<asp:WizardStep ID="WizardStep1" runat="server" Title="Main">
<Acme:Main runat="server" id="MainWC" />
</asp:WizardStep>
</WizardSteps>
</asp:Wizard>
with a web control
page.ascx
<asp
ropDownList ID="CorrectionType" runat="server">
<asp:ListItem Value="None" Selected=True>None</asp:ListItem>
<asp:ListItem Value="Gift">Gift</asp:ListItem>
<asp:ListItem Value="Membership">Membership</asp:ListItem>
<asp:ListItem Value="Gift and Membership">Gift and
Membership</asp:ListItem>
</asp
ropDownList>
I'm trying to set the "CorrectionType.Text" value equal to a
code-behind file Session Variable.
like
page.aspx.cs
Sesssion["CorrectionType"] = MainWC.CorrectionType.Text;
Basically, trying to set the CorrectionType on a Web Control equal to a
Session in the code-behind file.
Oh, when I try this I get:
'ASP.development_z1_forms_main_ascx.CorrectionType' is inaccessible due
to its protection level..
Thanks.
page.aspx
<asp:Wizard ID="Wizard1" runat="server" ActiveStepIndex="0" >
<WizardSteps>
<asp:WizardStep ID="WizardStep1" runat="server" Title="Main">
<Acme:Main runat="server" id="MainWC" />
</asp:WizardStep>
</WizardSteps>
</asp:Wizard>
with a web control
page.ascx
<asp
![Big Grin :D :D](/styles/default/custom/smilies/grin.gif)
<asp:ListItem Value="None" Selected=True>None</asp:ListItem>
<asp:ListItem Value="Gift">Gift</asp:ListItem>
<asp:ListItem Value="Membership">Membership</asp:ListItem>
<asp:ListItem Value="Gift and Membership">Gift and
Membership</asp:ListItem>
</asp
![Big Grin :D :D](/styles/default/custom/smilies/grin.gif)
I'm trying to set the "CorrectionType.Text" value equal to a
code-behind file Session Variable.
like
page.aspx.cs
Sesssion["CorrectionType"] = MainWC.CorrectionType.Text;
Basically, trying to set the CorrectionType on a Web Control equal to a
Session in the code-behind file.
Oh, when I try this I get:
'ASP.development_z1_forms_main_ascx.CorrectionType' is inaccessible due
to its protection level..
Thanks.