views:

48

answers:

1

Hi,

I'm struggling with ASP .NET Validators JavaScript issue. Following function (part of framework generated code) tries to access validatioGroup attribute value using control.Field syntax. It works fine in IE, however in FF that value is always undefined. Consequently, validation always passes and my validation scenario is broken... Is there a way to get round it?

function IsValidationGroupMatch(control, validationGroup) {
 if ((typeof(validationGroup) == "undefined") || (validationGroup == null)) {
 return true;
 }
 var controlGroup = "";
 if (typeof(control.validationGroup) == "string") {
 controlGroup = control.validationGroup;
 }
 return (controlGroup == validationGroup);
} 

Thanks, Pawel

+1  A: 

Here is the culprit:

<xhtmlConformance mode="Strict"/>

I had that line in web.config . Setting to default value, which is Transitional fixed the issue. Here is a background of the topic: Client side validation in FF

dragonfly