Can anyone please help me with Ajax Control toolkit codeing?
Basically I have 5 tabs.
I have created all the tabs but when the use first logs in they should be able to see only the first tab. The first tab will have a text field and a button so when the user enters data in the textbox and hits the button other tabs should be shown to user. Basically hiding and unhiding the tabs.
Scott, Thank you for the reply, I did try setting active index to 0, I am not sure if I did the right thing. Do I have to set activeindex to 0 on all the tabs or make activeindex sequential like activeindex=0 for first tab, activeindex=1 for 2nd etc..??
I'm not sure if I understand what you want to do. If I do understand correctly, then I'd have to suggest using other controls unless you really want a single visible tab. Anyway, I think the following code will do want you want.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
TabPanel1.Visible = True
TabPanel2.Visible = False
TabPanel3.Visible = False
TabPanel4.Visible = False
TabPanel5.Visible = False
TabContainer1.ActiveTabIndex = 0
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
' For some reason non-visible panel aren't
' part of the list so don't change ActiveTabIndex
' since the index of panel2 becomes 0
TabPanel1.Visible = False
TabPanel2.Visible = True