Connecting Tech Pros Worldwide Forums | Help | Site Map

Login User Information

Seok Bee
Guest
 
Posts: n/a
#1: Feb 3 '06
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
Ken Cox - Microsoft MVP
Guest
 
Posts: n/a
#2: Feb 5 '06

re: Login User Information


Do you mean using the LoginName control?


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

"Seok Bee" <seokbee@yahoo.com> wrote in message
news:F752BFA7-2B2F-49E0-B646-8032E934008B@microsoft.com...[color=blue]
> 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[/color]


Newbie
Guest
 
Posts: n/a
#3: Feb 5 '06

re: Login User Information


Hi,

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

HTH,
andy


"Seok Bee" <seokbee@yahoo.com> wrote in message
news:F752BFA7-2B2F-49E0-B646-8032E934008B@microsoft.com...[color=blue]
> 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[/color]


Closed Thread