i am working on a project.but i have a problem.basically,i am using ajaxtoolkit tabcontainer.assume that i have 2 tabs which i created.let's call them tab1,tab2.in tab1 there is a button and textbox.when i click the button,i am writing some text into the textbox.then i am creating a tab dynamically.assume that it is called "tab3".the problem is when i click the button in the tab1,tab3 is diappearing.how can i prevent this?

1 Answer
1

When dealing with any dynamic controls, you will need to re-add them after every postback. My recommendation is to store your dynamically-added controls in the ViewState, and write a method that retrieves the information from ViewState and adds your tabs. Then call this method from Page_Init.