作者:8o断情戒爱o8 | 来源:互联网 | 2023-08-22 21:01
Iselectionpagethathasagridviewthatpresentstheuserwithalistofdataitemsthattheycan
I selection page that has a gridview that presents the user with a list of data items that they can click on to "drill into" - redirecting them to the data maintenance page.
我选择具有gridview的页面,该页面向用户显示一个数据项列表,用户可以单击该列表以“深入”——将它们重定向到数据维护页面。
Because the list can get long, we have a series of check boxes and drop-down lists at the top that act as filters.
因为列表可以很长,我们在顶部有一系列的复选框和下拉列表作为过滤器。
We just implemented an UpdatePanel with an UpdatePanelAnimationExtender so that when the page made long trips back to the databse, they would get a nice "Processing..." pop up.
我们刚刚用UpdatePanelAnimationExtender实现了一个UpdatePanel,这样当页面长时间地返回到databse时,就会弹出一个漂亮的“处理……”。
Problem is, this seems to break the viewstate on the drop-down lists and check boxes. Now, when they go to the 'detail page' and hit the BACK button to get back to the 'selection' page - the selected values in the checkboxes and drop-downlists are back to their initial defaults. The lists are still populated, but they 'forgot' what they had when the user clicked to the data maintenance page.
问题是,这似乎会破坏下拉列表和复选框上的viewstate。现在,当他们转到“细节页面”并点击“后退”按钮返回到“选择”页面时,复选框和下拉列表中的选定值将恢复到最初的默认值。列表仍然是填充的,但是当用户点击数据维护页面时,他们会“忘记”所拥有的内容。
I took out the .aspx code for the UpdatePanel and the animation extended and retested and everything worked perfectly. So, apparently, the UpdatePanel and/or the AnimationExtender doesn't play nice with the viewstate.
我为UpdatePanel和动画进行了.aspx代码的扩展和重新测试,一切都运行得很好。显然,UpdatePanel和/或AnimationExtender不能很好地处理viewstate。
Is there a way I can stop the UpdatePanel's actions from, in effect, zeroing out the '.SelectedValue" properties?
是否有一种方法可以阻止UpdatePanel的行为,实际上是将其归零。SelectedValue“属性?
1 个解决方案