Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 27, 2013 02:37 AM by chetan.sarode
Feb 26, 2013 02:23 PM|LINK
We are using the Ajax TabContainer and would like to hide and show actual tabs depending upon the users role / permission level.
or de-activate the tab if they don't have the correct user role privilages.
suppose we have a normal user and a superuser and we want normal users to view tab1 only and superusers to view both tab1 and tab2.
this example here (top of page):
de-activates (greys out) a tab when you uncheck the <input id="ctl00_SampleContent_showComponents" name="ctl00$SampleContent$showComponents" checked="checked" type="checkbox" /> Show Controls Owned
box. - not sure if this works based on the users role or not?
We can hide and show actual content inside the tabbed area, but not sure if it's possible to hide and show the actual tab itself?
Feb 26, 2013 02:56 PM|LINK
It ok, i think i've found the answer:
Then myTabName.Visible = False
Feb 27, 2013 02:37 AM|LINK
You probably need to do this in the codebehind.
I presume that ajax tab has a visible property that you can set to false then you code would be something like:
nameOfYourTab.Visible = False;