问题
All my webforms using RequiredFieldValidator, RegularExpressionValidator and ValidationSummary are not working on IE 10. It is working fine on any other browsers. It is strangely doing postback which does not happen on any other browsers.
Another strange thing is when I open developer console(F12), it seems to be working but it is still doing postback. All these Validations should occur at client side by default.
Has anyone here faced similar problem?
回答1:
please check these link1 and link2
Edit:
I got this fix from.. Hanselman
Browser Definition files shipped with .Net 2.0 and .Net 4.0 contains defintions for certain range of browser versions. By default, ASP.NET uses sniffing technology for the user agent string to detect browsers. The browser definition files cover a certain range of browser versions.As the version numbers increase, ASP.NET might not recognize new versions of a browser by using the user agent string. In this case, ASP.NET might handle these versions as an unknown browser and causes inconvenience.
FIX
The fix is to get updated browser-definition files. You can install a machine-wide fix or just fix individual projects. Hotfixes are availble with download links. - .Net 4 - .Net 2.0
来源:https://stackoverflow.com/questions/15917503/requiredfieldvalidator-client-side-validations-do-not-work-on-ie-10