Sys.WebForms.PageRequestManagerParserErrorException怎么解决

来源:百度知道 编辑:UC知道 时间:2024/06/02 13:49:34
Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes

for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace

is enabled. Details: Error parsing near '
用VS。NET2005做了一个GRIDVIEW显示数据,自定义了一个模版咧,模版列当中有一个LABEL和一个BUTTON,然后在BUTTON事件打开一个子窗口.运

行后刚开始点击BUTTON能弹出子窗口,可过了5分钟左右再点的话就就出现这个错误提示了. .各位高手帮帮忙., 指点下该怎么消除这错误

页面用了ScriptManager和UpdatePanel

protected void LinkButton_DocName_Command(object sender, CommandEventArgs e)//查看文献详情
{
string docID = e.CommandArgument.ToString();
string key = "js";
string javascript = "<script>window.open('DocumentDetail.aspx?docID=" + docID + "','_blank','height=300,

width=820,toolbar=no,scrollbars=yes, resizable=yes')</script>"

很显然,用了udatepanel是不能使用服务器端时间的
我也是过了RegisterStartupScript好像没成功
你试试添加一个trigger

我打错字了
string "时间"="事件";

Raised by the PageRequestManager class when there is an error processing the response to an asynchronous postback.

Remarks
When an error occurs on the server while processing the response to an asynchronous postback, a PageRequestManagerParserErrorException object is created by using the Error.create function. For information about how to handle this error condition, see Debugging and Tracing AJAX Applications Overview.

参数在接受时候转换的问题吧