I am developing a web application in ASP.NET. The menu/ navigation bar is at the top of the website. Now, I want to create the Administrative tasks and since I have enough space in the menu bar, I will add a new tab/ element to the menu called Admin which will appear only to the Admin. The problem now is: to add this element, I need to change a little bit in the style of the menu. The menu style is placed in a separate CSS file and it is different from the CSS file of the whole website. By doing this, I will change the style of the menu for all users and what I want is just displaying these changes to the Admin not to all users. Therefore, how to do that? Is there any way to do that?
The menu bar is implemented inside the Site.master page. Also, I am using Windows Authentication not Forms Authentication. No need for Forms Authentication, because the website will be only used inside the company.
Please provide me with example (if any)
Use the ASP.NET role provider which integrates with some of the built in ASP.NET controls like Menu and TreeView.
See Recipe: Implementing Role-Based Security with ASP.NET 2.0 using Windows Authentication and SQL Server for some ideas.
ASP.NET Site-Map Security Trimming describes roles and security trimming.