asp.net Wizard control strange issue

Posted by epitka on Stack Overflow See other posts from Stack Overflow or by epitka
Published on 2009-11-10T16:32:44Z Indexed on 2010/12/23 6:54 UTC
Read the original article Hit count: 215

Filed under:
|

Update:

There was actually a hidden panel with validator in the user control that was causing page not to be valid on the first postback. Consider this issue resolved.

This is first time I am using this control and it is behaving rather strange. I have to click on the "Next" button twice for it to move to the next step. I tried explicitly setting active index, using MoveTo etc. Nothing works. Here is the markup for the control. Anybody has any ideas why?

 <asp:Wizard ID="UserWizard" runat="server" ActiveStepIndex="0"
         StartNextButtonImageUrl = "~/App_Themes/Default/images/buttons/continue.gif" StartNextButtonType="Image"
        StepNextButtonType="Image" StepNextButtonImageUrl="~/App_Themes/Default/images/buttons/continue.gif"
        FinishPreviousButtonImageUrl="~/App_Themes/Default/images/buttons/back.gif"
        FinishPreviousButtonType="Image" FinishCompleteButtonImageUrl="~/App_Themes/Default/images/buttons/save.gif"
        FinishCompleteButtonType="Image" CancelButtonType="Image" CancelButtonImageUrl="~/App_Themes/Default/images/buttons/back.gif"
        DisplaySideBar="false" >
        <WizardSteps>
            <asp:WizardStep Title="User Profile" ID="UserProfile" runat="server">
                <uhc:ctlUserProfileEdit ID="ctlUserProfileEdit" runat="server">
                </uhc:ctlUserProfileEdit>
                <br clear="all" />
                <div>
                    <asp:ImageButton ID="cmdResetPassword" runat="server" ImageUrl="~/App_Themes/Default/images/buttons/resetpassword.gif" />
                </div>
                <div>
                    <asp:UpdatePanel ID="upSchools" runat="server" ChildrenAsTriggers="true">
                        <ContentTemplate>
                            <uhc:ctlSchoolLocationSelector ID="ctlSchoolLocationSelector" runat="server" />
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
            </asp:WizardStep>
            <asp:WizardStep Title="Roles" ID="Roles" runat="server">
                <uhc:ctlPermissionInternal ID="ctlPermissionInternal1" runat="server"></uhc:ctlPermissionInternal>
                <uhc:ctlPermissionExternal ID="ctlPermissionExternal1" runat="server"></uhc:ctlPermissionExternal>
            </asp:WizardStep>
        </WizardSteps>
    </asp:Wizard>

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET