IE10 "__doPostBack is undefined" solutions do not work

I have a web server running Windows Server R2 Standard and am experiencing the problem described in this blog post: http://www.hanselman.com/blog/BugAndFixASPNETFailsToDetectIE10CausingDoPostBackIsUndefinedJavaScriptErrorOrMaintainFF5ScrollbarPosition.aspx

In short, .Net cannot recognize IE10 and treats it as a downstream browser without javascript support - if I understand the problem correctly.

I have tried the following popular solutions:

  • Both fixes for .Net 2 and 4 are installed.
  • Manually update the browser definition files in the .Net framework configuration folder and run aspnet_regbrowsers.exe.
  • Place the new browser definition files in the App_Browsers directory.

Finally, I upgraded to .Net 4.5, which solved the problem for .NET sites running on the server, however .Net sites are still experiencing this problem.

Since it is a live web server, it has had many Windows updates that have not been installed. I thought maybe there was an update that would help solve this problem. So I looked through the updates, but none of the descriptions seems to fix the problem, so I can not justify their installation and potentially create more problems.

Does anyone have any other solutions or possible reasons why this issue simply will not disappear?

+7
source share
2 answers

I have the same problem and could not understand why none of the fixes work. However, I found a workaround that might work for you: setting the Page.ClientTarget attribute to "uplvel" cancels the detection of .NET browser capabilities. See http://msdn.microsoft.com/en-us/library/system.web.ui.page.clienttarget.aspx for more information.

+1
source

Many corrections were made at Microsoft; they worked in the local environment, but nothing worked on the real server.

Setting page.ClientTarget = "level up" (preferably on the header or footer page) really solved the problem. I think this is the best solution since your .net application cannot detect any other browser in the future. But then we will have to wait and see if this fix has side effects.

0
source

All Articles