Welcome Guest Search | Active Topics | Sign In | Register

TabStrip Options
Stephen Currah
Posted: Thursday, June 21, 2007 12:54:57 PM
Rank: Newbie
Groups: Member

Joined: 6/21/2007
Posts: 2
I put TabStrip in a master page to perform hyperlinks to different content pages - all using the same master page. Each of the Tabs is selectable and properties can be changed. How?

How do I address TabStrip1 in the content pages' code behind.
Obviously there should be some declaration associated with the control in the master page.
But can't figure what for this particular situation!
Can anyone help? Think
eo_support
Posted: Thursday, June 21, 2007 12:59:05 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,098
Hi Stephen,

Usually you should avoid messing up with the master page from inside your content page, but if you have to, this article explained one of the ways to do it:

http://www.devx.com/dotnet/Article/18042/0/page/2

The key is "Master.FindControl".

Thanks

Stephen Currah
Posted: Thursday, June 21, 2007 1:46:27 PM
Rank: Newbie
Groups: Member

Joined: 6/21/2007
Posts: 2
Figured it out from your help:
Quite simple really-
Following code is on content page

Dim menuTabStrip As EO.Web.TabStrip
menuTabStrip = CType(Master.FindControl("TabStrip1"), EO.Web.TabStrip)
menuTabStrip.SelectedIndex = 1 or 2 or 3 . . . . . for each of the pages in turn.

but the TabStrip is on the master page.
As each of the pages is called - in turn each page sets the selected item.
Background colour, text, url etc could also be manipulated.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.