G
Guest
How do you get the currently logged in user from a regular c sharp class?
I have a common utility class in which I have some static functions that
called from multiple places. In one of the functions, I need to know who is
the username of the user that is currently logged into the website. On the
webpage in the website, I can use either profile.username or
context.username, what is the method for doing this in a regular c sharp
class?
Thanks
Eric
I have a common utility class in which I have some static functions that
called from multiple places. In one of the functions, I need to know who is
the username of the user that is currently logged into the website. On the
webpage in the website, I can use either profile.username or
context.username, what is the method for doing this in a regular c sharp
class?
Thanks
Eric