if (dq_gly. Yhm! = "Admin")
{
This. Tabcontainer1.tabs[0]. Visible = false;
This. TABCONTAINER1.TABS[1]. Visible = false;
This. TABCONTAINER1.TABS[2]. Visible = false;
This. TABCONTAINER1.TABS[4]. Visible = false;
This. TABCONTAINER1.TABS[3]. Visible = true;
This. Tabcontainer1.activetabindex = 3;//must be activated, otherwise all tabs are still not displayed when there is only one tab, and when more than 2 tabs are visible, the system is automatically activated by default. When only one of the tabs is visible, the system does not know which
}
Else
{
This. Tabcontainer1.tabs[0]. Visible = true;
This. TABCONTAINER1.TABS[1]. Visible = true;
This. TABCONTAINER1.TABS[2]. Visible = true;
This. TABCONTAINER1.TABS[4]. Visible = true;
This. TABCONTAINER1.TABS[3]. Visible = true;
}
Dynamic display and hidden issues for tabs of ASP. NET AJAX Control tab controls