How can i select a Tab in my Masterpage from a other Page

2 posts, 0 answers
  1. Bernd Wachter
    Bernd Wachter avatar
    11 posts
    Member since:
    May 2004

    Posted 24 Nov 2009 Link to this post


    I have a RadTabStrip in my Masterpage..

    How can i set the selected Tab from Codebehind in a Site when my RadTabStrip is in the Masterpage ???

    When i open a Content Site like test.aspx in this Site in CodeBehind (Page_Load) i will set the
    active Tab where i wish ???
    I Page Load Event on my Content Page i will say does (Demo) the myPictures Tab is now set as active
    and the RadTabStrip is in my Masterpage ...

    Can you help me please with a VB Code Snipet ??

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Nov 2009 Link to this post

    Hello Bernd Wachter,

    You can try following code in order to select the tab from code behind in content page.

    Protected Sub Page_Load(ByVal sender As ObjectByVal e As EventArgs) 
        Dim tabstrip As RadTabStrip = DirectCast(Master.FindControl("RadTabStrip1"), RadTabStrip) 
        tabstrip.SelectedIndex = 2 
    End Sub 

Back to Top