Other Walkthroughs:
TabContainer is an ASP.NET AJAX Control which creates a set of Tabs that can be used to organize page content. A TabContainer is a host for a number of TabPanel controls. Each TabPanel defines its HeaderText or HeaderTemplate as well as a ContentTemplate that defines its content. The most recent tab should remain selected after a postback, and the Enabled state of tabs should remain after a postback as well. TabContainer layout provides option to set TabPanels at top, topright, bottom, bottomright. TabContainer also provides option to set TabPanels at left, leftbottom, right and rightbottom by setting UseVerticalStripPlacement to true. Tabs can be loaded all at one time or on demand. Each tab provides functionality to load tab in three different modes - always, once or none. Tab can be accessed by keyboard. After focus is set on the tab container then you can navigate to different tabs by using the left and right arrow keys. When tabs are displayed vertically then Up and Down arrow keys can be used to navigate from tab to tab.
The control above is initialized with this code. The italic properties are optional:
<ajaxToolkit:TabContainer runat="server" OnClientActiveTabChanged="ClientFunction" Height="150px" Width="400px" ActiveTabIndex="1" OnDemand="true" AutoPostBack="false" TabStripPlacement="Top" CssClass="ajax__tab_xp" ScrollBars="None" UseVerticalStripPlacement="true" VerticalStripWidth="120px" > <ajaxToolkit:TabPanel runat="server" HeaderText="Signature and Bio" Enabled="true" ScrollBars="Auto" OnDemandMode="Once" <ContentTemplate> ... </ContentTemplate> /> </ajaxToolkit:TabContainer>
.CustomTabStyle .ajax__tab_header { font-family:verdana,tahoma,helvetica; font-size:11px; background:url(images/tab-line.gif) repeat-x bottom; }