Security Server Controls

N

n I c H o L a S

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?
 
S

subtile

The Login Control has a UserName property..

You can also retrieve it by code after login

User.Identity.Name;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top