Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 16, 2010 10:00 AM by Zhi-Qiang Ni - MSFT
Jun 09, 2010 02:16 PM|LINK
i have tab container that contain 2 tab, one is profile view and another is profile edit
there is a hyperlink in menu bar, when user click profileview then a variable '1" is send in query string, when user click profileedit then variable '2' is send
my active tab index is '0' that is profileview
how to set focus on tabindex1 inside this function
what should be the code to set focus on tabindex 2
pls help i am beginner!!!!!!!!!!!!!!!
Jun 09, 2010 03:19 PM|LINK
Both of these work for me:
TabContainer1.ActiveTab = tabTwo; // tabTwo is the id of the tab
TabContainer1.ActiveTabIndex = 1; // zero based index.
Jun 09, 2010 04:27 PM|LINK
i tried both but not working
i see another strange this, the tab which is open in visual studio, become the active tab
then how can i check my active tab working or not??
Jun 16, 2010 10:00 AM|LINK
You can set the TabPanel’s ActiveTabIndex property value with the corresponding TabPanel’s index, then, the TabIndex would be changed after your selection.
Refer to these threads: