Click here to Skip to main content
15,889,876 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello!

I have a site with 7 different master pages. But every master page has the same "logic" for the menu. Thus I need to have the same code block for the menu on all 7 master pages.

If I implement this by copying the same code block on all 7 master pages, I will need to edit the menu 7 times if there is any change needed in the menu.

To fix this I started using User Controls that I could define outside the master pages, and then call on all the master pages.

This is working great for me, but my development team lead keeps bringing up the issue of over burdening the system by using something like User Controls which is totally not made for this kind of usage, and thus untested for its long term implications.

Does anyone here have a better solution, or is it safe to assume that User Controls is the way forward?

To give you a sense of how I am implementing my master pages you can review my post here:
[^]

Do let me know if I need to provide any more details.

Thanks a ton!
Posted

1 solution

 
Share this answer
 
Comments
William Emmanual 24-Nov-13 4:38am    
Interesting - I will review this recommendation with my peeps.

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