如何在asp.net中的按钮的OnClientClick中调用以下函数 [英] How to call the below function in OnClientClick of a button in asp.net
本文介绍了如何在asp.net中的按钮的OnClientClick中调用以下函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
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;
}
如何在asp.net中的按钮的OnClientClick中调用上述函数
请帮助
How to call the above function in OnClientClick of a button in asp.net
please help
推荐答案
类似的问题在这里:从后面的代码中调用javascript方法 [ ^ ]
希望对您有帮助,
祝你好运.
Hi,
Similar question Here : calling javascript method from code behind[^]
Hope it helps you,
best of luck.
这篇关于如何在asp.net中的按钮的OnClientClick中调用以下函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文