Version

Using Load on Demand in WebTab

WebTab™ handles a large number of tabs without incurring a loss in performance with its load-on-demand feature enabled.

To enable load-on-demand feature:

  1. From the Visual Studio™ Toolbox, drag and drop a ScriptManager component and a WebTab control onto the page.

  2. Add tabs to WebTab as shown in the Adding Tabs to the WebTab topic.

  3. In the Properties window expand PostBackOptions ; select the EnableLoadOnDemand property and set it to True to enable the load-on-demand feature in the WebTab. You can also enable this feature through the following code:

In HTML:

<PostBackOptions EnableLoadOnDemand="True" />

In Visual Basic:

WebTab1.PostBackOptions.EnableLoadOnDemand = True

In C#:

WebTab1.PostBackOptions.EnableLoadOnDemand = true;
  1. Save and run your application. You will observe that the content of a tab is fetched as the tab is selected.