- Joined
- Jan 30, 2006
- Messages
- 2
- Reaction score
- 0
Hi,
I am trying to create a Tabstrip control in the code behind. I could create the tabs dynamically, but the selectedIndexChanged event is not firing for that. Can anyone tell me that how can i add an selectedIndexChaned event to my tabstrip thru the code behid. Here is my code for creating tabstrip control....Autopostback is true for tabstrip
Dim i As Integer
Dim mon() As String = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul"}
Dim tbsallocation As New TabStrip
tbsallocation.TabDefaultStyle.Add("background-color", "AliceBlue")
tbsallocation.TabDefaultStyle.Add("border-style", "solid")
tbsallocation.TabDefaultStyle.Add("text-align", "center")
tbsallocation.TabDefaultStyle.Add("font-face", "Verdana")
tbsallocation.AutoPostBack = True
For i = 0 To mon.Length - 1
Dim tbstab As New Tab
Dim tbssep As New TabSeparator
tbstab.Text = mon(i)
tbsallocation.Items.Add(tbstab)
Next
tabstrippanel.Controls.Add(tbsallocation)
Please send me a rsolution for this issue....
I am trying to create a Tabstrip control in the code behind. I could create the tabs dynamically, but the selectedIndexChanged event is not firing for that. Can anyone tell me that how can i add an selectedIndexChaned event to my tabstrip thru the code behid. Here is my code for creating tabstrip control....Autopostback is true for tabstrip
Dim i As Integer
Dim mon() As String = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul"}
Dim tbsallocation As New TabStrip
tbsallocation.TabDefaultStyle.Add("background-color", "AliceBlue")
tbsallocation.TabDefaultStyle.Add("border-style", "solid")
tbsallocation.TabDefaultStyle.Add("text-align", "center")
tbsallocation.TabDefaultStyle.Add("font-face", "Verdana")
tbsallocation.AutoPostBack = True
For i = 0 To mon.Length - 1
Dim tbstab As New Tab
Dim tbssep As New TabSeparator
tbstab.Text = mon(i)
tbsallocation.Items.Add(tbstab)
Next
tabstrippanel.Controls.Add(tbsallocation)
Please send me a rsolution for this issue....