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

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top