0

Problem:

Sometimes submit button stops working after postback in IE11. It's clickable, but it doesn't trigger any event. There is no script or server side errors. Even the right click menu doesn't show on button. If clicked somewhere on page it starts to work normally.

Button is general ASP.NET button

Server side:

<asp:Button ID="btnSave" runat="server" Text="Save" SkinID="Button82" OnClick="btnSave_Click" />

Client side:

<input name="ctl00$cphMain$Substitution$btnSave" class="button82" id="cphMain_Substitution_btnSave" type="submit" value="Save">

Any solutions?

Krunal Patil
  • 3,666
  • 5
  • 22
  • 28
berzinsu
  • 915
  • 7
  • 12

1 Answers1

0

For now I solved it using this in postback:

ScriptManager.RegisterStartupScript(Page, this.GetType(), "Refocus", "RefocusIE11()", true);

It calls function after postback, that refocuses on next element. This makes button to work again.

berzinsu
  • 915
  • 7
  • 12