[Asp.net]: master page content hiding for different users

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sandeepsangshetty
    New Member
    • Aug 2008
    • 12

    [Asp.net]: master page content hiding for different users

    Hi friends,

    I designed one master page in my application.
    Here i am stuck up with hiding the content for the different users login.
    If the login user is Admin he needs to see some content and for other users they can not see that content.
    How can i hide the content of master page for specific login user.
    thank you.
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Use .net membership to identify s/he, user identity. Then you can set links to false and make them visible if admin logs in.

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      Or you could create different master pages for each group of users if the content is sensitive.

      Comment

      • sandeepsangshetty
        New Member
        • Aug 2008
        • 12

        #4
        Originally posted by Frinavale
        Or you could create different master pages for each group of users if the content is sensitive.
        I want to use only single master page for all the users.

        Comment

        • Frinavale
          Recognized Expert Expert
          • Oct 2006
          • 9749

          #5
          Originally posted by sandeepsangshet ty
          I want to use only single master page for all the users.
          Then in the master page code you will have to check the current user and determine what controls should be made available to them.

          Comment

          Working...