Security Server Controls

I am using the Login, LoginName, LoginStatus and LoginView controls in
my ASP.NET 2.0 website. I need to be able to control user access at a
more fine grained level in my C# code but I can not figure out how to
get the username of the current logged in user. None of the above
controls seem to expose the username as a property. Am I missing
something here is there a special way to get the username?

Advertisements

"n I c H o L a S" wrote:
> I am using the Login, LoginName, LoginStatus and LoginView controls in
> my ASP.NET 2.0 website. I need to be able to control user access at a
> more fine grained level in my C# code but I can not figure out how to
> get the username of the current logged in user. None of the above
> controls seem to expose the username as a property. Am I missing
> something here is there a special way to get the username?
>

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!