"只能在执行Render()的过程中调用RegisterForEventValidation" 解决方案

时间:2014-05-01 13:16:15   收藏:0   阅读:400

开发中遇到令人蛋疼的问题:

只能在执行Render()的过程中调用RegisterForEventValidation

当出现的异常的提示:

异常详细信息: System.InvalidOperationException:只能在执行Render()的过程中调用RegisterForEventValidation;

不要伤心,下面是解决办法:

出现这个异常,解决问题只需要在<%@ Page %> 指令中加上 EnableEventValidation="false" 

"只能在执行Render()的过程中调用RegisterForEventValidation" 解决方案,码迷,mamicode.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!