Vrik22
asked on
asp.net buttons not working inside update panel of master page Uncaught TypeError: Cannot read property 'PRM_ServerError' of undefined
I am getting an error as below when i deploy the code in IIS where as in local it works fine.
I have a master page and master page has an update panel which display a popup on click of a button . Inside an update panel it has two buttons which on click is performing operations server as well as client side operations. It has a child page where <asp:ScriptManager>.. has been employed (i.e., AJax CDN toolkit ). Now the issue seems to be like whenever the child page is loading it is not allowing a postback from master page's Update panel , whereby giving an exception as below :
i tried setting like this to supress it, but it did not help :
the issue is driving me nuts ! and i need a proper solution to make the button click in updatepanel work in Master page .
I have a master page and master page has an update panel which display a popup on click of a button . Inside an update panel it has two buttons which on click is performing operations server as well as client side operations. It has a child page where <asp:ScriptManager>.. has been employed (i.e., AJax CDN toolkit ). Now the issue seems to be like whenever the child page is loading it is not allowing a postback from master page's Update panel , whereby giving an exception as below :
Uncaught TypeError: Cannot read property 'PRM_ServerError' of undefined
at Sys.WebForms.PageRequestManager._createPageRequestManagerServerError (MicrosoftAjaxWebForms.js:6)
at Sys.WebForms.PageRequestManager._parseDelta (MicrosoftAjaxWebForms.js:6)
at Sys.WebForms.PageRequestManager._onFormSubmitCompleted (MicrosoftAjaxWebForms.js:6)
at Array.<anonymous> (MicrosoftAjax.js:6)
at MicrosoftAjax.js:6
at Sys.Net.WebRequest.completed (MicrosoftAjax.js:6)
at XMLHttpRequest._onReadyStateChange (MicrosoftAjax.js:6)
i tried setting like this to supress it, but it did not help :
<script runat=server>
$(document).ready(function () {
Sys.WebForms.PageRequestManager.getInstance().add_endRequest( endRequest );
});
function endRequest( sender, e ) {
if( e.get_error() ){
document.getElementById("error").innerText = e.get_error().description;
e.set_errorHandled( true );
}
</script>
the issue is driving me nuts ! and i need a proper solution to make the button click in updatepanel work in Master page .
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.