Wednesday, 28 August 2013

doPostback failing in IE 11+ Windows 8.1

doPostback failing in IE 11+ Windows 8.1

I am getting blank page in IE 11 in Windows 8.1 Preview.After Inspecting
the page I assumed that following code might be the culprit,since after
these line there is not further line displayed debugger window, So code is
breaking after this line.
IE 11
<!-- <form name="aspnetForm" method="post" action="Register" id="aspnetForm">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
value="/wEPDwUKMTkwNDQ3O
I tried the same page in Chrome Version 29.0.1547.57 m in Windows 8.1
Preview It is working fine there and I get following code.
CHROME

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['aspnetForm'];
if (!theForm) {
theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
-->

No comments:

Post a Comment