Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PageRequestManagerServerErrorException当从jQuery事件中而不是从控制台返回时?_Jquery_Asp.net_Ajax_Dopostback - Fatal编程技术网

PageRequestManagerServerErrorException当从jQuery事件中而不是从控制台返回时?

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

出于某种原因,当试图在jQuery事件中调用_doPostBack来更新我的UpdatePanel时,页面只会刷新

当执行以下代码时,深入研究:

$('#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();