Clearing viewstate for dynamic user controls

P

Perecli Manole

I have a form that dynamicaly loads user controls based on user
postbacks. Everything works well except that the framework seems to
want to match the viewstate data from my previous control to the new
control on post back even through the IDs are all different. Is
there a way to selectively clear the viewstate of a control before
the framework does the match and applies the viewstate? Disabling
the viewstate is not an option since I need it when the dynamic
control is not swapped.

Thanks
Perry
 

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,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top