|
-
Feb 15th, 2012, 01:40 AM
#1
Thread Starter
PowerPoster
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
-
Feb 21st, 2012, 08:38 AM
#2
Fanatic Member
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.
-
Feb 22nd, 2012, 10:50 AM
#3
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|