there a number of ways to do this. use getElementsByTagName, and checking the
name, but the simplest is to add the checkbox id to the validator
ClientScript.RegisterExpandoAttribute(myValidator.ClientID,
"chk1",checkbox1.ClientID);
ClientScript.RegisterExpandoAttribute(myValidator.ClientID,
"chk2",checkbox2.ClientID);
ClientScript.RegisterExpandoAttribute(myValidator.ClientID,
"chk2",checkbox2.ClientID);
then in the client validation function:
function chkValid(oSrc, args)
{
var chk1 = document.getElementById(oSrc.chk1);
var chk2 = document.getElementById(oSrc.chk2);
var chk3 = document.getElementById(oSrc.chk3);
}
-- bruce (sqlwork.com)
> Hi,
>
[quoted text clipped - 10 lines]
>
> Thanks in advance.