Welcome Guest Search | Active Topics | Sign In | Register

Seeting default tab Options
sabuj001
Posted: Friday, July 6, 2007 7:45:16 AM
Rank: Newbie
Groups: Member

Joined: 7/6/2007
Posts: 2
I'm using the tab control, where i have defined 4 tabs. The first tab from the left is always the deafult one no matter what i do.

I'm using the tabs to show some information and depending what the user clicked on the website the appropriate tab shows the data along with other items.

Is there a way to select another tab and its associated panel show up as the deafult or have javascript change have any tab show up as the selected tab instead of the default one?
eo_support
Posted: Friday, July 6, 2007 9:03:00 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
hi,

Thanks for posting your question here.
In design UI, you might not be able to set the selected tab. But in Page_Load() handler, you can just simply set the SelectedIndex to whatever page you want to display.
For example here, we set the second page as current page:
Code: C#
this.TabStrip1.SelectedIndex = 1;


Thanks.


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.