<PostBackOptions EnableLoadOnDemandUrl="True" />
WebTab allows you to enable the load-on-demand feature for tab items with ContentUrl by setting the EnableLoadOnDemandUrl property to True. This property can be used when the ContentUrl is set to websites that run scripts like jquery.js,which may attempt to set focus or calculate offsets on initialization regardless of html element visibility. These actions may result in javascript exceptions being raised. The workaround for these bugs is to set the EnableLoadOnDemandUrl property to True, which allows only visible selected ContentUrl to load.
From the Visual Studio™ Toolbox, drag and drop a ScriptManager component and a WebTab control onto the page.
Add tabs to WebTab as shown in the Adding Tabs to the WebTab topic.
In the Properties window expand PostBackOptions ; select the EnableLoadOnDemandUrl property and set it to True to enable the load-on-demand feature for tabs with ContentUrl set. You can also enable this feature through the following code:
In HTML:
<PostBackOptions EnableLoadOnDemandUrl="True" />
In Visual Basic:
WebTab1.PostBackOptions.EnableLoadOnDemandUrl = true
In C#:
WebTab1.PostBackOptions.EnableLoadOnDemandUrl = true;
Save and run your application. You will observe that the content of the tab with ContentUrl set is fetched as the tab is selected.