0

I am using Ajax Tabcontainer and Tab panels. There are 4 tabs. Different users can use this application. Based on some condition, I want users to redirect to specific Tabs on page load.

How can we do that ?

rene
  • 41,474
  • 78
  • 114
  • 152
Hitesh Gawhade
  • 181
  • 3
  • 7
  • 23

3 Answers3

0

Use ActiveTabIndex to select the tab you want in the page_load event.

More Info

Priyank Patel
  • 6,898
  • 11
  • 58
  • 88
0

You can use the TabControl.ActiveTabIndex with your Tab Index number. that will directly redirect on that tab page according to your condition.

Ankur Gupta
  • 933
  • 3
  • 15
  • 27
0
If (Username == "Admin")
    TabContainer.ActiveTabIndex = 0;
else
    TabContainer.ActiveTabIndex = 1;
thevan
  • 10,052
  • 53
  • 137
  • 202