Click or drag to resize
KaxTabControl Constructor
Initializes a new instance of the KaxTabControl class.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public KaxTabControl()
Remarks
Use this constructor to create and initialize a new instance of the KaxTabControl control.
Examples
The following example demonstrates how to programmatically create a KaxTabControl control.
void Page_Load(object sender, EventArgs e)
{
    KaxTabControl KaxTabControl1 = new KaxTabControl();
    KaxTabControl1.ID = "KaxTabControl1";

    if (!Page.IsPostBack)
    {
        //KaxTabControl persist its tab in ViewState (if EnableViewState is true). 
        //Hence tabs should be created only on initial load.

        KaxTab sportTab = new KaxTab("Sport");
        KaxTabControl1.Tabs.Add(sportTab);

        KaxTab newsTab = new KaxTab("News");
        KaxTabControl1.Tabs.Add(newsTab);
    }

    PlaceHolder1.Controls.Add(KaxTabControl1);
}
See Also