By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,291 Members | 3,120 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,291 IT Pros & Developers. It's quick & easy.

strange viewstate problem , please give me some idea. thanks

P: n/a

All my pages are created dynamically. So I have a controlholder control, I
put it in a page, and pass it some parameters, it will load control by with
loadcontorl. It is a bit complex. At the beginning, I turned of viewstate,
everything work just fine. Then I need use multiview and retain data between
different views. I have to turn on viewstate. Now my control doesn't persist
data well. It happens like this:

I put a multiview on page, its id is mainview, it has two views, in each
view, I put a child multiviews, they are subview1 and subview2, each them
has two views. then I put TextBox and my control in the views of the
subviews. When I switch the mainview, that means switching between subview1
and subview2, all controls retain data well. But when I switch from subview1
to subview2, and then in subview2 I switch its child multiview, then go back
to subview1, only the TextBox retains data, my control lost its data.

I have no idea what could happen here, any idea what should I check?

Feb 8 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.