"'Webform_docallback' is not set" - IE 11

Asked

Viewed 567 times

0

I had a problem with a website I am programming when running it on IE11.

After placing the tag inside mine so that the code is emulated in as IE 9:

<head id="Head1" runat="server">
<meta http-equiv="x-ua-compatible" content="IE=9" />

Everything was working until I got to the Callback function:

function CallServer(arg, context) {WebForm_DoCallback('__Page',arg,retornoCallback,"",erroCallback,true); }

And the message is displayed:'WebForm_DoCallback' não está definido

How to make code run normally?

  • Where are you declaring the function WebForm_DoCallback() ? could show her code? There are probably syntax errors in it, or it is not being declared.

  • @The interesting mustache is that running locally it works perfectly but not in serivdor. And I also noticed that if you switch the user-agent from IE 11 to IE 9 (in addition to the Document type) it works smoothly. Unfortunately I can not show code snippet. OBS: this function runs smoothly in other browsers.

1 answer

1

It may be a problem already known with the server’s IIS/Asp.Net, where Microsoft provides some Hotfixes (download here) that affect the server in general and all applications, or a Nuget package (App_browsersupdate) to solve the problem in a single application.

Scott Hanselman has an excellent article explaining better about these solutions (in his case the problem occurred in the __doPostback() function, but the idea is the same)

  • I installed the update on the server and nothing happened.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.