Tab Control Demo

Information Selection PostBacks Display Disabled Samples

The Tab control is a server side control that manipulates a client side implementation. The control itself renders only the tab strip plus some initial startup script code that is fired when tab selections are made in client code (via the ActivateTab() function) or by clicking on one of the tabs.

Each Tab page is just an HTML element which is linked to a tab defined in the server side control. When the page renders all pages referenced by the tab control are hidden (although it's actually best if you hide them by default yourself to avoid flicker on large pages) and the active page is then activated.

Display characteristics of the tab strip are determined via CSS styles. Predefined styles for .tabbutton,.selectedtabbutton, .disabledtabbutton determine the display attributes. The default implementation is provided in westwind.css and the tab images are provided in the images folder of the virtual.