You can create a Tab control with UserControl in ContentSection and add Tab items from code behind. This helps you to load content with multiple controls inside a tab and provides you a clear structured code.
In order to add the web user control with the user defined structure with multiple controls and elements to a Tab, you can use the LoadControl() method of ASP UserControl class in code behind. Refer to the following steps to create a Tab items from code behind and map user control from code behind.
Refer to the following code examples to add UserControl from code behind.
The following screenshot displays the Tab with the loaded user control and items created from code behind.
Figure 1: Tab with UserControl and Tab items added from code behind
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:||Product Version:|
|3232||01/13/2015||01/13/2015||ASP.NET Web Forms||Tab||220.127.116.11|