PageRequestManagerServerErrorException当从jQuery事件中而不是从控制台返回时?
出于某种原因,当试图在jQuery事件中调用_doPostBack来更新我的UpdatePanel时,页面只会刷新 当执行以下代码时,深入研究:PageRequestManagerServerErrorException当从jQuery事件中而不是从控制台返回时?,jquery,asp.net,ajax,dopostback,Jquery,Asp.net,Ajax,Dopostback,出于某种原因,当试图在jQuery事件中调用_doPostBack来更新我的UpdatePanel时,页面只会刷新 当执行以下代码时,深入研究: $('#modal-forgottenpassword .modal-close').live('click', function(e) { e.preventDefault(); $('#modal-forgottenpassword input[type=hidden]').val('0'); __doPostB
$('#modal-forgottenpassword .modal-close').live('click', function(e)
{
e.preventDefault();
$('#modal-forgottenpassword input[type=hidden]').val('0');
__doPostBack('ctl00$CPH_Body$buttonReset','');
});
看看Firebug或类似产品,在页面刷新之前,我得到了以下信息:
Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 0
然而,如果我在Chrome或Firebug中使用控制台并执行
__doPostBack('ctl00$CPH_Body$buttonReset','');
它很好用
有什么想法吗?虽然我觉得没那么简单,但我还是用了变通法
$('#CPH_Body_buttonReset').click();