how to change menu items on master page depending on content page selection
hi guys,
I have a master page with an unordered list that contains items like, Home, Messages etc.
Now I am working on an EditProfile.aspx page and I want the menu to change and have items like Basic Information, Profile Picture etc. Sort of like facebook. What is the best way to accomplish this
Re: how to change menu items on master page depending on content page selection
set up public properties on the master page for any controls you need to access from the page. Declare the master page at the top of the aspx page so you can access the properties. his way you can control the master from the page.
Re: how to change menu items on master page depending on content page selection
Hello,
Before the user can have an EditProfile page, then I assume that the user must be logged into the site. Further assuming you are using the Membership and Profile Provider that come with ASP.Net, then you can control which menu items are shown/hidden based on the role of the logged in user.
Take a look at the Restricted Menu link in my signature for more information.
Gary