阿宽

Nothing is more powerful than habit!
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
我在将GridView输了到Excel中时出现"只能在执行 Render() 的过程中调用 RegisterForEventValidation;"错误。

解决办法是在当前页面的:

<%@ Page %> 指令中加上 EnableEventValidation="false"