Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Dear All,
I created tabs using javascript and CSS. i separated tabs using DIV. suppose i have three tabs A,B,C. whenever i work on Tab B and it page is refreshed then it is focusing on tab A while it should be on B. any help for this problem
Posted
Comments
Donsw 1-Jul-10 8:03am    
Reason for my vote of 3
good question

If you can not assure that cookies are enabled use the session but the same theory applies you have to preserve the state somehow.
 
Share this answer
 
You need to persist the tab index across postbacks. If you're using javascript then perhaps you could use a cookie to do so.
 
Share this answer
 
Comments
Donsw 1-Jul-10 8:03am    
Reason for my vote of 4
excellent

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900