e-on
e-on

Reputation: 1605

ValidatorValidate method in JavaScript not working for ie10

Does anyone use the JavaScript ValidatorValidate function to control their asp.net validators on the client side?

Have been using it for years, but have noticed that with IE10, I now get this javascript error:

SCRIPT5009: 'ValidatorValidate' is undefined

It's like the relevant javascript libraries aren't included with IE10 - has anyone come across this before? Is there a way of including the relevant code?

Update Just to update, I thought ValidatorValidate() was a purely JS function, but have discovered it's generated by ASP.net.

Thanks

Upvotes: 1

Views: 1370

Answers (1)

Yuriy Galanter
Yuriy Galanter

Reputation: 39777

Most likely .NET FrameWork in your application is not aware of IE10 and downgrades it to a lower browser capabilites. The solution is to either apply one of the following hotfixes on WebServer hosting the app:

If this is not an option, you can make you application aware of IE10, by adding browser definition file to its APP_Browsers folder.

Ref: http://www.hanselman.com/blog/BugAndFixASPNETFailsToDetectIE10CausingDoPostBackIsUndefinedJavaScriptErrorOrMaintainFF5ScrollbarPosition.aspx

Upvotes: 1

Related Questions