I'm currently testing doing some testing with other browsers and have found
that my custom field validators aren't firing with Firefox or Netscape, but
they work fine with Ie.
Here's the code I'm using:
<asp:CustomValidator id="vld1PaymentType"
ClientValidationFunction="ValidateRadiobutton" runat="server"
ErrorMessage="Payment Type must be selected"
CssClass="ValidationMessage"></asp:CustomValidator>
<script language="javascript">
function ValidateRadiobutton(oSrc, args) {
if(document.all["<%=rbChoiceA.ClientID%>"].checked == false &&
document.all["<%=rbChoiceB.ClientID%>"].checked == false){
args.IsValid = false;
}
}
</script>
Am I not going about this the right way or there another way to validate a
radio button?
Thanks!