Click here to Skip to main content
15,886,769 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I have used ajax tab container in my application In that container 4 tabs available.
I need to restrict the users to select the tabs. How can i perform this in asp.net application.




thanks,
Purna
Posted
Comments
Aravindba 13-Jun-14 6:22am    
just use enabled or visible as true or false for corresponding user
Purna.N 13-Jun-14 6:25am    
How can perform this for tab header
Aravindba 13-Jun-14 6:27am    
use index value for tabs.

1 solution

1. set div visible property to false
2.check your user type at the time of login.
3.if the user is authorized
then
set div visible property to true
 
Share this answer
 
Comments
Purna.N 13-Jun-14 6:25am    
Just I need to restrict the click event of tab for every user
Kriti Sharma 10400841 13-Jun-14 6:31am    
use

<asp:TabPanel ID="Tab4" runat="server" Enabled="false" >
<HeaderTemplate>
Hostel
</HeaderTemplate>
<contenttemplate>
</contenttemplate>
</TabPanel>

set enabled property to true or false at code behind page as authorization
Purna.N 13-Jun-14 7:26am    
then the content also enabled false. I need to give the users to enter the details

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