Solved

How to maintain view state for dynamic controls

Posted on 2014-01-28
2
272 Views
Last Modified: 2014-02-04
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?
0
Comment
Question by:mannevenu26
2 Comments
 
LVL 96

Assisted Solution

by:Bob Learned
Bob Learned earned 250 total points
ID: 39816774
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
 
LVL 12

Accepted Solution

by:
jitendra patil earned 250 total points
ID: 39817036
please check the below link,
ViewState in Dynamic Control
hope this helps.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question