locked
Using a Tab Container, How do I reference TabPanels by ID Rather Than Active Index? RRS feed

  • Question

  • I know that I can track which TabPanel I'm on by using TabContainer.ActiveIndex; but I've already experienced issues with this during developing while adding/moving tabs around.  Surely there is a way to know the active tabpanel ID?

    Below is an example of the codebehind where I'm using ActiveIndex, and a screenshot of my TabPanel set up...

            If tcStudentIntervention.ActiveTabIndex = 0 Then
                sqlInterventionAssignment_Select()
            ElseIf tcStudentIntervention.ActiveTabIndex = 1 Then
                gvInterventionAssignment.DataBind()
            ElseIf tcStudentIntervention.ActiveTabIndex = 4 Then
                sqlStudentEnrichmentChoices_Select()
            End If

    Saturday, February 16, 2013 1:48 PM

Answers