Click here to Skip to main content
16,017,193 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Using Javascript, how to redirect to next tab in tabcontainer on button is clicked? I am using VS2008.
Posted
Updated 21-Dec-10 6:31am
v2

What are you using to create the tabs?

With JQuery Tabs its just a matter of calling the select method.
http://jqueryui.com/demos/tabs/[^]
 
Share this answer
 
C#
function MoveTab(num)
{
var container =$find('<% =TabContainer1.ClientID %>');
container.set_activeTabIndex(num);
return false;
}

in button use these properties
UseSubmitBehavior="False"
TabIndex=";1"
OnClientClick=return MoveTab(0)
 
Share this answer
 
Comments
birundha1 13-May-11 8:34am    
Thank u for u'r solution.I got this result

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