Hi, can anyone advise me how I can access the UserName of a currently logged in user without using the LoginName control.
For instance I want to search tables I have created in my database that I have referenced by UserName as a foreign key. This is straightforward if I can identify what the currently logged in user's username is. But I can't??
I have tried Environment.UserName but this simply provides the username of my computer, rather than the currently logged in username of the application.
How can I access the Membership provider information such as UserName and UserID from the code of any website template?
Kind Regards,
GI