Solved

How to maintain view state for dynamic controls

Posted on 2014-01-28
2
264 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Framework versus framework 64 in IIS 8.5 5 80
Problem to picture file 3 38
cs.Designer Issue 2 14
Jquery autocomplete 10 21
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now