Intersoft Support Center

Populate Tab Content Programmatically in Server-side

WebTab can populate tab content from code behind.

This topic will show you how to populate tab content programmatically in server-side,

To populate tab content programmatically in server-side

  1. Drag WebTab control to the WebForm.
  2. Place the following code in Page_load in order to populate tab content.
    C# Copy Code
    protected void Page_Load(object sender, EventArgs e)
       String strContent =
             "<div class='text'>This window is using InlineContent mode created from code behind.</div>";
       WebTab1.TabPages[1].PageTemplate = new GenericContainerTemplate(strContent);
       WebTab1.TabPages[2].ContentURL = "HTMLpage.htm";
       WebTab1.TabPages[2].ContentMode = ContentMode.UseIFrame;

  3. Run the project.
Previous Next