Results 1 to 3 of 3

Thread: how to change menu items on master page depending on content page selection

  1. #1

    Thread Starter
    PowerPoster Nitesh's Avatar
    Join Date
    Mar 2007
    Location
    Death Valley
    Posts
    2,556

    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

  2. #2
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727

    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.

  3. #3
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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
  •  



Click Here to Expand Forum to Full Width