views:

178

answers:

0

I'm working on an application with a TabContainer. Some of the tabs in the tabcontainer are hard-coded in the page while others will be configured using settings in Web.Config.

For the dynamically added tabs, I can set the tab index to the value from Web.config, and things work fine. I'm doing this in Page_Init.

When I try to set the tab index on the hard-coded tabs, the page doesn't throw an error but it doesn't render, either. A blank page comes up.

I don't think moving this code outside Page_Init will work (from what I've read, the tabs are created during Page_Init).

At this point I'm wondering if it's even possible to change the tab index on an existing tab in server-side code. It seems like it should be possible, since I can access and set the property. When I step through the code, the TabIndex for a given tab is indeed changed, but when the page renders the tab stays in its original position.