none
HTML Code

    Question

  • Can you tell me if I can set up information on a website so that only certain people see it?

    Thanks.

    Wednesday, January 24, 2018 4:38 PM

All replies

  • You can if you want to.


    Sam Hobbs
    SimpleSamples.Info

    Wednesday, January 24, 2018 5:39 PM
  • Can you give me an idea of how to do that?  What commands I would use?
    Wednesday, January 24, 2018 9:04 PM
  • Hi Jane hossfeld,

    In my opinion, if you want to achieve this requirement, you need implement the user login in your application.

    Your website should know which the user login in, then it could check the user permission to see which information the user could see.

    To achieve this, I suggest you could consider using asp.net identity.

    After including this in your project, you could easily using role manager to achieve your requirement.

    More details about identity, you could refer to below link:

    https://docs.microsoft.com/en-us/aspnet/identity/overview/getting-started/introduction-to-aspnet-identity

    More details about how to use identity role manager, you could refer to below link:

    https://www.codeproject.com/articles/790720/asp-net-identity-customizing-users-and-roles 

    Best Regards,

    Brando


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, January 25, 2018 2:14 AM
  • There are very many ways to do it. Many of them are vulnerable to being hacked. How you do it depends on what you need to do. Do you want to protect an application; something that people use to do things? Or do you need to protect pictures or data files or something else?


    Sam Hobbs
    SimpleSamples.Info

    Thursday, January 25, 2018 4:04 AM