简体   繁体   English

ASP.NET向导控件中的ViewState问题

[英]ViewState problem in asp.net Wizard control

We are using an ASP.NET (2.0) Wizard control where on each wizard step the user fills in a few fields. 我们使用的是ASP.NET(2.0)向导控件,用户在每个向导步骤中都填写了几个字段。

We have found that sometimes for some odd reason the value of the fields in previously filled steps is lost when "postbacking" to another step. 我们发现,有时由于某种奇怪的原因,当“回退”到另一个步骤时,先前填充的步骤中的字段值会丢失。

This problem seems to occur randomly; 这个问题似乎是随机发生的。 sometimes some of the field values are retained and others are lost. 有时某些字段值会保留,而其他字段值会丢失。

The EnableViewState is true for the Page and all controls. Page和所有控件的EnableViewState为true。

What are we overlooking? 我们忽略了什么?

These kind of things happen when use Update Panel. 使用“更新面板”时会发生这类事情。 In that case, U need to update the update panel. 在这种情况下,U需要更新更新面板。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM