Sys.WebForms.PageRequestManagerParserErrorException错误的解决方法

今天将GridView导出excel的时候出现如下错误:

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.

解决方法:

将导出时间的button放在GridView所在的UpdatePanel的trigers里

原文地址:https://www.cnblogs.com/kofkyo/p/2297266.html