ASP.NET callback not starting in IE

We are using a control that uses callbacks on our ASP.NET page.

  • Management works fine in FireFox, Google Chrome, etc.
  • Management works fine if we don't use the ASP.NET AJAX story. As soon as we call this code, callbacks stop working in IE (6, 7 and 8):

    ScriptManager.GetCurrent (Page) .AddHistoryPoint ("h", id);

  • I did some server-side debugging to find out that RaiseCallbackEvent was not running in IE, but was fired for others.

  • I was debugging the use of Fiddler and noticed that it was not requesting the appropriate URL. The server returns an invalid request error.

Other browsers send HTTP POST: test.aspx

However, IE sends it: test.aspx% 23 && h = 12

This is because the URL in the browser line is test.aspx # && h = 12 due to our AJAX History Control.

How to get IE to disable the binding used for AJAX history when calling WebForm_DoCallback in JavaScript?

+3
source share
1 answer

Reading the contents in WebForm_DoCallback, I did not see anything that would indicate the server address. This means that he either gets it from the form action, or sends it to the current page. Try setting the action attribute of the form.

+3
source

Source: https://habr.com/ru/post/1728199/


All Articles