I am encountering a strange problem with a web form using the HTMLButton in an asp.net environment. Due to formatting requirements, I need to utilize a <button>
construct which functions properly in all browsers except for IE11.
<button id="cmdLogin" runat="server" OnServerClick="cmdLogin_OnServerClick" class="btn btn-more" ValidationGroup="Login" CausesValidation="True">
Login
</button>
When I use a standard asp.net button control, the client-side validation executes correctly. The discrepancy I noticed between the buttons is the onclick function that ASP.Net injects:
if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate('ModalLogin'); __doPostBack('ctl00$scriptsFooterPlaceholder$TDF971800010$cmdLogin','')
Although I'm aware of issues related to __doPostBack in IE11 for .Net 4, my application runs on .Net 4.51 so that might not be the cause. There are no visible JavaScript errors affecting the functionality (and the standard button test suggests that client-side script works fine). The problem only occurs in IE11 while other browsers such as Chrome, Firefox, Safari, IE8, IE9, and IE10 work without any hitches.
Has anyone else encountered this issue before?