KaxTabControl Constructor |
Initializes a new instance of the KaxTabControl class.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax new : unit -> 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)
{
KaxTab sportTab = new KaxTab("Sport");
KaxTabControl1.Tabs.Add(sportTab);
KaxTab newsTab = new KaxTab("News");
KaxTabControl1.Tabs.Add(newsTab);
}
PlaceHolder1.Controls.Add(KaxTabControl1);
}
Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim KaxTabControl1 As KaxTabControl = New KaxTabControl()
KaxTabControl1.ID = "KaxTabControl1"
If Not Page.IsPostBack Then
Dim sportTab As KaxTab = New KaxTab("Sport")
KaxTabControl1.Tabs.Add(sportTab)
Dim newsTab As KaxTab = New KaxTab("News")
KaxTabControl1.Tabs.Add(newsTab)
End If
PlaceHolder1.Controls.Add(KaxTabControl1)
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also