<div class="SampleCSS"> <span>Sample content</span></div>
This sample demonstrates some of the capabilities available to you when using the server side features of the TabControl. Select the desired tab page name from the dropdown and define the visual settings of the corresponding page by clicking the appropriate button. Click any tab within the page control to initiate server-side events which can be traced in the Events monitor.
Each tabbed page within a page control has server-side properties which allow you to manipulate the state of the page and so change the visualization of the entire page control. Thus, the Enabled property allows you to enable or disable any page's tab. With the Visible property, you can show or hide a particular page's tab. In order to activate a specific page and display its contents, the ActiveTabPage property can be used.
The server-side ActiveTabChanging and ActiveTabChanged events used in this demo allow you to perform any custom action on the server. In this example, the ActiveTabChanged event is handled to synchronize the dropdown editor's value with the clicked tab and both the ActiveTabChanging and ActiveTabChanged events are used to display event information in the Events monitor.