C
charleswesley
I've searched this group and found several posts relating to this all
of which have the following "solution":
TextBox textBox1 =
WizardStep1.CustomNavigationTemplateContainer.FindControl("TextBox1")
as TextBox;
My problem is that when I try to do this I get an error stating that
"CustomNavigationTemplateContainer is not a member of
System.Web.UI.WebControls.WizardStep"
Here is my template:
<StepNavigationTemplate>
<asp:Button runat="server" ID="btnAnswer" Text="Submit Answer"
CssClass="NavigationButton" OnClick="SubmitAnswer" />
<asp:Button runat="server" ID="btnMoveNext" CommandName="MoveNext"
Visible="False" />
<asp:Button runat="Server" ID="btnMovePrevious"
CommandArgument="MovePrevious" Visible="false" />
</StepNavigationTemplate>
All I want to do is change the visible properties on the btnAnswer and
btnMoveNext button controls depending on some conditional logic I have
in the SubmitAnswer sub.
What would the code look like that would access these controls?!
of which have the following "solution":
TextBox textBox1 =
WizardStep1.CustomNavigationTemplateContainer.FindControl("TextBox1")
as TextBox;
My problem is that when I try to do this I get an error stating that
"CustomNavigationTemplateContainer is not a member of
System.Web.UI.WebControls.WizardStep"
Here is my template:
<StepNavigationTemplate>
<asp:Button runat="server" ID="btnAnswer" Text="Submit Answer"
CssClass="NavigationButton" OnClick="SubmitAnswer" />
<asp:Button runat="server" ID="btnMoveNext" CommandName="MoveNext"
Visible="False" />
<asp:Button runat="Server" ID="btnMovePrevious"
CommandArgument="MovePrevious" Visible="false" />
</StepNavigationTemplate>
All I want to do is change the visible properties on the btnAnswer and
btnMoveNext button controls depending on some conditional logic I have
in the SubmitAnswer sub.
What would the code look like that would access these controls?!