Click here to Skip to main content
16,018,353 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I am using a wizard plugin(http://www.jquery-steps.com/[^]) but i am facing a problem, requiredfieldvalidator, ajaxtoolkit calendarextender, etc, are not firing.

Here is the code to reproduce the error, JQuery and step plugin most be added.

I hope you can help me.

ASP.NET
<script>
 $(function () {
             $("#wizard").steps({
            headerTag: "h2",
            bodyTag: "section",
            transitionEffect: "slideLeft",
            stepsOrientation: "vertical"           
        }); 
</script>
<div id="wizard">
            <h2>
                First Step</h2>
            <div>
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="TextBox1" runat="server" ErrorMessage="RequiredFieldValidator"></asp:RequiredFieldValidator>
                        </td>
                    </tr>                    
                    <tr>
                        <td>
                            <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>

                            <asp:CheckBox ID="CheckBox1" runat="server" />
                            <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
                        </td>
                    </tr>
                </table>
            </div>
            <h2>
                Second Step</h2>
            <div>
                <p>
        <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                <asp:Button ID="Button2" runat="server" Text="Button" ValidationGroup="algo" />
            </div>                    
            
        </div>
Posted

1 solution

From the code you have posted here , can see ValidationGroup applied to the Button.
Use the same ValidationGroup="algo" to the TextBoxes too which needs to be validated.
 
Share this answer
 
Comments
Angel Blandón 1-Feb-14 21:53pm    
Hi JoCodes, i try your solution but it does not work, seems that the pluging (Steps Wizard) is blocking validators and ajaxtoolkit controls. If i remove the pluging everything works fine. You can try by your self adding the pluging to a page with validators.

Regards, Hope you can help me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900