How to control the client login. RRS feed

  • Question

  • User977786652 posted

    Hello, I am working on an application where it stores information that different clients will be using. I need to figure out how to show the current client logged in only what they have posted to the application and not everything that has been posted to the application. Client 1 logs in and sees what they have posted; client 2 loggs in and sees what they have posted.....etc. Can anyone shed some light on this for me?




    Monday, September 6, 2010 8:50 PM


  • User-1852462877 posted

    User.Identity.Name can be used to get the login name of the current user.

    You should be storing posts (say in a table name Posts1 containing fields date, post, title, username)

    Your query should look something like:

    Select * from Posts1 where username=User.Identity.Name

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, September 6, 2010 11:52 PM