CompareValidator issue on Firefox

Posted by costin on Stack Overflow See other posts from Stack Overflow or by costin
Published on 2010-06-11T09:02:47Z Indexed on 2010/06/11 9:32 UTC
Read the original article Hit count: 305

Hi,

I need to validate a date in a web forms application. For this I use a CompareValidator with

Operator="DataTypeCheck" Type="Date"

The problem is that this Validator doesn't work properly on Firefox with 2 digit years. ( javascript error: m[2] is undefined) With a 4 digits year it's working properly.

This problem is described also here: https://connect.microsoft.com/VisualStudio/feedback/details/355573/comparevalidator-client-side-bug-two-digit-year-in-mozilla-based-browsers-throws-js-exception

Does anyone know a nice workaround for this?

Thanks

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about JavaScript