B
beaudetious
I've got a wizard control setup where I use the NavigationTemplates to
control the navigation buttons. My setup (very generally and with no
specifics) looks like this:
<asp:Wizard>
<StartNavigationTemplate></StartNavigationTemplate>
<StepNavigationTemplate></StepNavigationTemplate>
<FinishNavigationTemplate></FinishNavigationTemplate>
<WizardSteps>
<asp:WizardStep ID="WizardStep1" runat="server" stepType="start">
</asp:WizardStep>
<asp:WizardStep ID="WizardStep2" runat="server" stepType="step">
</asp:WizardStep>
<asp:WizardStep ID="WizardStep3" runat="server" stepType="finish">
</asp:WizardStep>
</WizardSteps>
</asp:Wizard>
Of course, I've got controls inside the tags where they belong and the
Wizard is working wonderfully except validation is a bit flaky. My problem
is that I have to change some properties on the buttons inside the
<StepNavigationTemplate> section depending on which <WizardStep> I'm in.
The documentation says to use the wizard's FindControl method but that
method doesn't work (I keep getting null). I tried looping through the
wizard's control collection but that only contains a single control and it's
not my button. The <StepNavigationTemplate> doesn't seem to be available
from the WizardSteps items either.
This seems like a very normal thing to do. So what gives?
Brian
control the navigation buttons. My setup (very generally and with no
specifics) looks like this:
<asp:Wizard>
<StartNavigationTemplate></StartNavigationTemplate>
<StepNavigationTemplate></StepNavigationTemplate>
<FinishNavigationTemplate></FinishNavigationTemplate>
<WizardSteps>
<asp:WizardStep ID="WizardStep1" runat="server" stepType="start">
</asp:WizardStep>
<asp:WizardStep ID="WizardStep2" runat="server" stepType="step">
</asp:WizardStep>
<asp:WizardStep ID="WizardStep3" runat="server" stepType="finish">
</asp:WizardStep>
</WizardSteps>
</asp:Wizard>
Of course, I've got controls inside the tags where they belong and the
Wizard is working wonderfully except validation is a bit flaky. My problem
is that I have to change some properties on the buttons inside the
<StepNavigationTemplate> section depending on which <WizardStep> I'm in.
The documentation says to use the wizard's FindControl method but that
method doesn't work (I keep getting null). I tried looping through the
wizard's control collection but that only contains a single control and it's
not my button. The <StepNavigationTemplate> doesn't seem to be available
from the WizardSteps items either.
This seems like a very normal thing to do. So what gives?
Brian