Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET tabs
i have one tab container in which have tabpanel1,tabpanel2,tabpanel3,tabpanel4 when user selects the tabpanel4 it should open tabpanel1 . i tried onClientActiveTabChanged in javascript code but its not working.
Posted 13-May-13 1:17am
raji 2429
Edited 14-May-13 18:52pm
CHill60 at 13-May-13 6:39am
That would override the tab behaviour? You appear to be saying that whatever tab the user selects always activate the first one. So your user will never see the other 3 tabs??? I'm sure that is not really what you mean. Use the Improve question link to make your question clearer and post the code that you have tried so far

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I think that you want to say that when user clicks on any tab it opens the 1st tab.
The reason behind it which you may check is-
-DO You have set tabpanel1 as active tab in tab property?
-When you are clicking tabpanel there is a post back firing?
-it initializes your page again and sets the active tab as tabpanel1?

if these are the things

have the tab container in update panel(for partial postback) to avoid post backs.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 300
1 Sergey Alexandrovich Kryukov 204
2 PIEBALDconsult 180
3 Suvendu Shekhar Giri 115
4 Peter Leow 100
0 Sergey Alexandrovich Kryukov 6,434
1 OriginalGriff 6,033
2 Peter Leow 2,534
3 Maciej Los 2,268
4 Abhinav S 2,264

Advertise | Privacy | Mobile
Web04 | 2.8.150414.1 | Last Updated 15 May 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100