|
Subject:
|
dynamically creating controls
|
|
Posted By:
|
rahulpokharna
|
Post Date:
|
1/11/2006 12:25:59 AM
|
I am facing following problem Based on selection of dropdownlist in home page , i am creating a tabcontrol with some tabs on other page, and based on tab selection the related textboxes are created from database, this all i am doing in page_load event. now when i enter something with a particular tab selected,then clicks on next tab. but in doing that, the values previously entered in tab are lost as page_load event is called again and new controls are created for new tab selected, is there any way with page_init and viewstate, so that the values entered in first tab are preserved during other tab selection.
any pointers to it will be of great help
regards rahul pokharna
|
|
Reply By:
|
planoie
|
Reply Date:
|
1/11/2006 11:47:30 AM
|
You might want to try putting the contents of each tab in a placeholder of panel control that can be made invisible. This way they are still "on" the page and their state is maintained, but they just aren't seen.
-Peter
|
|