This is a migrated thread and some comments may be shown as answers.

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

1 Answer 67 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Bernd Wachter
Top achievements
Rank 1
Bernd Wachter asked on 24 Nov 2009, 08:31 AM
Hello,

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 ??

Tahnks

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Nov 2009, 11:14 AM
Hello Bernd Wachter,

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

VB:
 
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 

Regards,
Shinu.
Tags
TabStrip
Asked by
Bernd Wachter
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or