Last post Sep 06, 2010 11:52 PM by CandorZ
Sep 06, 2010 08:50 PM|rickh78|LINK
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?
Sep 06, 2010 11:52 PM|CandorZ|LINK
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