Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
1.67/5 (3 votes)
See more:
[Asp.net / Vb.Net] How can I validate my gridview footer checkbox using Javascript.

I have a gridview with footer having 8 checkboxes -(chkActive1,chkActive2,.....chkActive3) - The condition I want to have is - The user need to check atleast 1 checkbox or else the trasaction would not allow.

thanks..
Posted

1 solution

You can add some clientCode to every controlled cell of the Footer. (It can be triggers or new properties)

This code, can execute a Javascript function that after check all controlled cells, enables or disables the button to raise the transaction.
 
Share this answer
 

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