I'm using a TabContainer control, which is in a User Control, which is in a Content Page. What I want is to have all but one of the tabs disabled on page load, but after the user completes filling in the form and clicks submit, the other tabs get enabled. So far, I have set the Enabled="false" on each of the TabPanels except the first one, and here is where the first problem arises. Not only are they disabled - they're invisible! When a control is disabled, the user is accustomed to seeing it greyed out and not useable, but still there. Is there a way to disable the tabs without removing them entirely? I tried setting the Visibility to true, but this didn't help.
After that, I need to re-enable them. I'm able to get a reference to the Tabs collection of the TabContainer in my code-behind, using a lengthy FindControls chain, and am able to set its Enabled property to true. However, nothing happens. The code executes without error, but the tab doesn't reappear. I see on the AjaxControlToolkit site that, through some JavaScript, the enabled state can be toggled. The problem is that, with my executing code nested within a User Control, I'm not able to get the JavaScript to fire. The button that fires the event is in the User Control, and the JavaScript would be (I assume) in the header ContentPlaceholder of the Content Page in which the User Control is registered. How can I get this to work?
It's not how hard you push in life, but who you push, that makes the difference between success and running for your life.