Click here to Skip to main content
16,021,115 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two user controls (ascx); one contains some forms, and the other one contains the menu bar.

I used both of them in many pages. Now, I need to customize the one that has the menu bar for the Admin Homepage. So, is it possible to add some changes to the user control just for this page.

I mean by changes, adding two elements to the menu bar.

For instance, let us assume that the two pages are called: Admin, Settings. How will you customize the user control for them?

By the way, I am using the ASP.NET Role-Based Security since I am using the Windows Authentication. This to define the Admin from the Normal User.
Posted
Updated 14-Nov-11 7:45am
v2

1 solution

You don't need to customize the user control, only the menu, and that can be done by modifying the the menu items based on the page or user role. Without knowing how you are constructing the menu it would difficult to give specifics.
 
Share this answer
 

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