我用的是嵌套母版页。
里面放了一个girdview, 触发rowUpdating事件的时候,就会报 未能加载视图状态
Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request. 然后我给相关的空间加了 enableviewstate=false 之后 。不报错,但是gridview的rowUpdating事件触发不了了
如何解决。谢谢。。
enableviewstate=false在web.config里?或者你可以不用rowupdating事件,自己定义修改事件,新弹出页面,这样就不用gridview的viewstate了。
http://topic.csdn.net/u/20090509/15/350e1b9a-431e-476e-ba3a-3799f1371f88.html