Click here to Skip to main content
16,014,470 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello sir.
i have requirement. that is " i have a Accordian control in that i have 3 hyperlinks named acc1,acc2,acc3. and i have one tab control in that i have 3 tabs named tab1, tab2, tab3.
my requirement is if we click "acc1" hyperlink, the tabcontrol tabpanel "tab1" will be exist on top. if click "acc2", "tab2" will be exist on top. if click "acc3" "tab3" will be appeared on top.
if any body know anser plz tell me.it urgent.
Posted
Comments
Bikash Shrestha From Nepal 21-Oct-10 7:30am    
please paste you code here so that we can help you
Sunasara Imdadhusen 21-Oct-10 8:22am    
You want to change potion of tabs based on item clicking?

1 solution

Hi
I've done something simiar and put the code in the Code Behind file, so when a user clicks on the Hyperlink it will set the TabPanels visibilty and the ActiveTabIndex:

C#
if (!IsPostBack)
{
    TabContainer1.ActiveTabIndex = 0;
    TabPanel1.Visible = true;
    TabPanel2.Visible = false;
    TabPanel3.Visible = false;
}

if (Request.QueryString["LINK_SENDER"] == "ACTIONS")
{
    TabContainer1.ActiveTabIndex = 2;
    TabPanel1.Visible = false;
    TabPanel2.Visible = true;
    TabPanel3.Visible = false;
}


Hope that helps some.

Pete
 
Share this answer
 

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