ASP.NET fails to detect IE10 causing _doPostBack is undefined JavaScript error

user1888904 picture user1888904 · Dec 9, 2012 · Viewed 9.9k times · Source

ASP.NET fails to detect IE10 causing the following error:

_doPostBack is undefined JavaScript error

or maintain FF5 scrollbar position.

There is a bug in the browser definition files that shipped with .NET 2.0 and .NET 4, namely that they contain definitions for a certain range of browser versions. But the versions for some browsers (like IE 10) aren't within those ranges any more. Therefore, ASP.NET sees them as unknown browsers and defaults to a down-level definition, which has certain inconveniences, like that it does not support features like JavaScript.

The fix available at http://support.microsoft.com/kb/2600100 for Win7 SP1, is not working for me. Please help me on this. My working environment is:

.NET Framework 3.5 SP1, Windows Server 2003

Answer

Elijah Manor picture Elijah Manor · Jan 4, 2013

Try installing the Browser Definition Files from NuGet http://nuget.org/packages/App_BrowsersUpdate into your project. Browser Definition files for ASP.NET 4 are compatible with ASP.NET 3.5, so you should be okay. You may have had an issue installing the hotfix you mentioned if you do not have the appropriate permissions on your machine.