At runtime the tab control looks like this (with default styles applied):

The tab control consists only of a tab strip, which determines various display characteristics and a collection wwWebTabPages that define the behavior for each tab button when clicked. The idea is that a tab button is associated with an HTML DIV element that is activated when the button is clicked and hidden when another tab is activated.
The following markup gives a good idea of the structure for the control:
<ww:wwWebTabControl runat="server" id="Tabs" SelectedTab="divDisplay" TabHeight="30" TabWidth="120"> < TabPages> <ww:wwWebTabPage runat="server" TabPageClientId="divInfo" Text=" Information" TabImage="images/info.gif" Style="text-align:left" ActionLink="" > </ww:wwWebTabPage> <ww:wwWebTabPage runat="server" TabPageClientId="divSelection" Text="Selection" ActionLink="" TabImage=""> </ww:wwWebTabPage> ... < /TabPages> </ww:wwWebTabControl>
ActivateTab("TabControl1","Page 1 Caption")
You pass the Client Control Id and the name or tab index as parameters. ActivateTab() is generated into any page that contains a Tab Control so you can use client script to change pages.
For more information see How the wwWebTabControl works.
| Member | Description | |
|---|---|---|
![]() |
AddTab | This method is used to programmatically add tabs to the Tab control. It sets base settings and returns the tab so you can further customize the individual tab. o.AddTab(lcText,lcLink,lcClientId) |
![]() |
OnClientActivate | An optional client script event handler that can be fired when a page change occurs. |
![]() |
OnClientActivate | Allows you to specify a JavaScript handler that is called when a page is activated. The handler is passed the tab index number. |
![]() |
SelectedTab | The TabPageClientId that specifies the active tab. |
![]() |
SelectedTabCssClass | CSS Class for the selected tab button display. Determines how the tab renders. |
![]() |
TabCssClass | CSS Class for the regular button display. Determines how the tab renders. |
![]() |
TabHeight | Optionally specifies a TabHeight for all tabs. |
![]() |
TabPages | Contains a collection of all the Tabs for this tab control. Based on the wwWebTabPage class which contains properties for Text, TabPageClientId, ActionLink, TabImage and Style. |
![]() |
TabWidth | Optionally specifies a TabWidth for all tabs. |