Login User Information

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear Experts,

I am using the Login Control in ASP.NET 2.0 in my web application. I would
like to retrieve the login user login name. Can somebody give me some tips or
the code on getting the login user ID after login through the login control.

Many thanks in advance.

Regards,
SB
 
Do you mean using the LoginName control?


<asp:loginname id="LoginName1" runat="server" />
 
Hi,

Assume your user has already successfully logged in, you can retrieve its
userid by: user.identity.name

HTH,
andy
 
Back
Top