Hi Folks!
I have a page that has a tabstrip with multipage functionality. The tabs and the pageviews are created dynamically. To keep track of what tab and corresponding pageview should be selected I created a variable that holds a counter. Everytime a tab and pageview are created, I increment the counter. I then use this counter value to select the current tab and pageview after a post (selectindex = counter value). This works fine if the tabs and their corresponding pageviews aren't deleted. Once I introduced the functionality of removing tabs and their corresponding pageviews with the use of client code, my counter is useless.
I thought about creating a hidden form field that can be used to store a value that will represent the counter. When a new tab and corresponding pageview are to be created, I would update the hidden form field to hold the incremented selected index. When the tab and corresponding pageview are to be removed, I would include in my javascript a process to remove one from the counter. The counter really represents a value the is used to set my "selectedindex".
Hope this isn't too confusing... I'm really looking for the proper solution to implememt the adding and removing of tabs with a corresponding pageview that have been created dynamically.
Thanks!
Shawn
I have a page that has a tabstrip with multipage functionality. The tabs and the pageviews are created dynamically. To keep track of what tab and corresponding pageview should be selected I created a variable that holds a counter. Everytime a tab and pageview are created, I increment the counter. I then use this counter value to select the current tab and pageview after a post (selectindex = counter value). This works fine if the tabs and their corresponding pageviews aren't deleted. Once I introduced the functionality of removing tabs and their corresponding pageviews with the use of client code, my counter is useless.
I thought about creating a hidden form field that can be used to store a value that will represent the counter. When a new tab and corresponding pageview are to be created, I would update the hidden form field to hold the incremented selected index. When the tab and corresponding pageview are to be removed, I would include in my javascript a process to remove one from the counter. The counter really represents a value the is used to set my "selectedindex".
Hope this isn't too confusing... I'm really looking for the proper solution to implememt the adding and removing of tabs with a corresponding pageview that have been created dynamically.
Thanks!
Shawn