strange viewstate problem , please give me some idea. thanks

D

davidw

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?

thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top