display messages corresponding to users logged in
i am using visual web developer 2005 express and SQLserver express 2005. i am able to login using users created using roles and membership.
Now i want to display messages corresponding to users logged in.
the actual scenario is like this .
user called admin sends a message1 to user1 and message2 to user2 . these messages are stored in a database .
now if user1 logs in using his password the message1 must be retrieved from the database and must be displayed.
if user2 logs in message2 must be retrieved and displayed .
i think i can pass the result of "User.Identity.Name" to query the database to retrieve results .
but i dont know how to do that.
i am using the wizard interface of Visual web developer 2005 for databinding.
|