Click here to Skip to main content
Rate this: bad
good
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
v3
Comments
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
good
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.
  Permalink  

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

  Print Answers RSS
0 Kornfeld Eliyahu Peter 275
1 Maciej Los 214
2 Sergey Alexandrovich Kryukov 200
3 King Fisher 185
4 OriginalGriff 163
0 OriginalGriff 6,223
1 DamithSL 4,724
2 Maciej Los 4,196
3 Kornfeld Eliyahu Peter 3,894
4 Sergey Alexandrovich Kryukov 3,496


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 15 May 2013
Copyright © CodeProject, 1999-2014
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