Click here to Skip to main content
15,881,588 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,

I am using the bootstrap validator for form validation and RequiredFieldValidator for grid textbox validation in the same page. RequiredFieldValidator is not working if the bootstrap validator is implemented.
Please help to use both validations on the same page.

thanks in advance.

What I have tried:

grid validation:

<asp:TemplateField HeaderText="RatePerQuantity">
                                                            <ItemTemplate>
                                                                <asp:TextBox ID="txtRate" runat="server" MaxLength="6" />
                                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtRate"
                                                                    ErrorMessage="*" SetFocusOnError="True" ValidationGroup="Group1"></asp:RequiredFieldValidator>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>


button:

<asp:Button ID="btnSave" runat="server" Text="Submit" class="btn btn-primary" ValidationGroup="Group1" OnClick="btnSave_Click" />
Posted
Comments
Richard Deeming 23-Mar-18 14:55pm    
Bootstrap doesn't come with a built-in validator, and a Google search for "bootstrap validator" returns 51 million results.

Which third-party "bootstrap validator" library are you using?
itsureshuk 23-Mar-18 21:53pm    
http://formvalidation.io/ bootstrap validation using.
http://formvalidation.io/validators/

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