Just wanted to post that I found a solution.
//
//-- In my code behind app, I Create an instance of CheckBox control
//
CheckBox chkBox = new ChkBox;
ChkBox.ID = "chkTest1";
//
//-- Create instance of CustomValidator control
//
CustomValidator oCV = new CustomValidator();
oCV.ClientValidationFunction = "ClientValidation"; // This refers to the
client-side javascript, see below.
oCV.ErrorMessage = "Value Required";
oCV.Display = ValidatorDisplay.Dynamic;
//
//-- I have added a custom attribute to the CustomValidator that stores the
"ID"
// of the checkbox control to validate. This is used in the client-side
jscript ("source" parameter).
//
oCV.Attributes.Add("checkboxcontrol", chkBox.ID);
//-- Here I add the CustomValidator control to the "TableCell" where the
CheckBox control exists
tbcCell2.Controls.Add(oCV);
//--Client-Side JavaScrip
<script language="javascript">
//-----
function ClientValidation(source, args)
{
var obj = null;
obj = FindControl(source.checkboxcontrol);
if (obj != null)
{
args.IsValid = obj.checked;
}
}
</script>