Click here to Skip to main content
15,867,771 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I have checkboxes inside the gridview. I have used custom validator for the checkboxes in the template field of gridview.how when iwant to validate the custom validator when i go from one check box to another. how to do it.
Posted

1 solution

Remove Validation group for both validator and button
XML
like below

<asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="ename,ename1 must match"
                            OnServerValidate="CustomValidator1_ServerValidate" ValidateEmptyText="true"></asp:CustomValidator>


 <asp:Button ID="btnsubmit" runat="server" Text="Submit"/>

check it now
 
Share this answer
 
Comments
Member 10578683 27-Aug-14 3:32am    
i did like this but it is not working
Member 10578683 27-Aug-14 3:36am    
when i am moving from one checkbox to other it is not appearing . on a button click it is appearing

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