function CheckRequired(target, value) {
if ($("#<%=rbWaiveyes.ClientId %>").attr("checked") || $("#<%=rvWaiveno.ClientId %>").attr("checked")) {
value.IsValid = true;
} else {
value.IsValid = false;
}
}
I want to get rbWaiveyes and rvWaiveno ID, the script works in ordinary way.
but the rbWaiveyes and rvWaiveno are actually in the template of gridview.
what we do in the c# file is that we can use findcontrol method, but how can i find id in the aspx(javascript) way.
And the this is actually custom validater control which is also put in the template, so call is also from template.
1 Answer