RequiredFieldValidator client side validations do not work on IE 10

ぐ巨炮叔叔 提交于 2020-01-03 01:21:47

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!