How to maintain view state for dynamic controls

Hi,
I have created somany dynamic controls.When i click on Button event. evry thing(all controls) wentoff.Can u plz give example to maintain dynalmic controls after Post back?
mannevenu26Asked:
Who is Participating?
 
Jitendra PatilConnect With a Mentor Sr.Software EngineerCommented:
please check the below link,
ViewState in Dynamic Control
hope this helps.
0
 
Bob LearnedConnect With a Mentor Commented:
You need to recreate dynamic controls before the view state is processed in the page life cycle.  That is in the Page_Init event handler, but it doesn't work for every situation.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.