Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
function ValidateModuleList(source, args) {
           var chkListModules = document.getElementById('<%= ChkListMovieName.ClientID %>');
           var chkListinputs = chkListModules.getElementsByTagName("input");
           for (var i = 0; i < chkListinputs.length; i++) {
               if (chkListinputs[i].checked) {
                   args.IsValid = true;
                   return;
               }
           }
           args.IsValid = false;
       }





How to call the above function in OnClientClick of a button in asp.net

please help
Posted
Updated 12-Oct-12 1:16am
v3

1 solution

Hi,

Similar question Here : calling javascript method from code behind[^]

Hope it helps you,
best of luck.
 
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