gridview分页异常 [英] gridview paging exception

查看:61
本文介绍了gridview分页异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当时使用分页进行gridview

出现以下错误
提供解决方案

Sys.WebForms.PageRequestManagerServerErrorException:无法加载视图状态.加载视图状态的控制树必须与在上一个请求期间用于保存视图状态的控制树匹配.例如,当动态添加控件时,在回发期间添加的控件必须与在初始请求期间添加的控件的类型和位置相匹配.

i use the paging to gridview that time

the following error comes
give solution

Sys.WebForms.PageRequestManagerServerErrorException: 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.

推荐答案

添加页面标签中的下面属性.
Add the below attribute in page tag.
EnableViewstate=False


这篇关于gridview分页异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆