You’ll sometimes get this error in Firefox and Chrome, but not IE.
“TypeError: m is undefined”
“TypeError: Cannot read property ‘length’ of undefined”
There has been a known issue with Firefox and Chrome when you combine RegularExpressionValidators and RequiredFieldValidators. It’s been around since 2009, but no one has addressed the issue. Here’s the bug report on ASP.NET forums: http://forums.asp.net/t/1417973.aspx and here’s the bug report filed to Mozilla for the FF issue. Neither of them have a solution.
var Page_ValidationVer = “125”;
Here’s how I resolved it:
1. Create a new .js file called WebResourceOverrides.js
2. Copy the entire “ValidatorConvert” method from the WebResource.axd file to the file I created in Step 1.
3. Modify the method to check for undefined
4. Reference that new js file AT THE BOTTOM OF my master page
You can download my version of the WebResourceOverrides.js file from here: http://jongallant.com/blogassets/WebResourceOverrides.js.txt. Just remove the “.txt” extension, copy to your site, add the reference to the bottom of your master page and you are good to go.