Groups | Blog | Home
all groups > asp.net > february 2004 >

asp.net : Retirieving username during Forms based authentication


David Coe, MCP
2/9/2004 7:21:09 PM
Andre
2/9/2004 11:51:02 PM
Hi,

I'm working on a C# project, where I need to identify the username from each
user that logs on.
I use Forms authentication, and am able to display the username by using the
User.Identity.IsAuthenticated property.

But; I need to store the username in some sort of variable, and use it in a
DataSet that queries a table and retrieves rows that are "marked" with the
current username...

Any tips ?


Regards,
André

nfedin NO[at]SPAM programmer.net
2/10/2004 6:54:43 AM
What about a session object? Or ViewState object?

Neil

[quoted text, click to view]
AddThis Social Bookmark Button