无法加载视图状态... [英] Failed to load viewstate ...

查看:75
本文介绍了无法加载视图状态...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在网页上添加了动态控件,它会在下拉列表的选择中添加。

工作正常:当用户通过控件输入数据时,正确地存储到数据库中。

我们还允许用户在编辑按钮上编辑该数据,该按钮是在数据列表中添加的,但点击更新时它会抛出我的错误,如



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





我还提供Enableviewstate =false

仍然无法正常工作....

请建议解决方案.....



提前致谢....

解决方案

查看以下链接以获得解决方案:

为什么-WE-得到最异常失败,TO-负载viewstat e [ ^ ]

无法加载ViewState [ ^

I have added dynamic controls to the webpage its getting added on the selection of dropdownlist.
Its working fine: when user is entering data through that controls is getting stored properly into the database.
We are also allowing user to edit that data onclick of edit button which is added in the datalist but on click of update its throwing me error like

"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."


I am also providing Enableviewstate="false"
still its not working....
Please suggest solution.....

Thanks in advance....

解决方案

Take a look at following links for resolution:
why-we-get-the-exception-failed-to-load-viewstate[^]
Failed to Load ViewState[^]


这篇关于无法加载视图状态...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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