By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,978 Members | 1,823 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,978 IT Pros & Developers. It's quick & easy.

Login User Information

P: n/a
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
Feb 3 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Do you mean using the LoginName control?
<asp:loginname id="LoginName1" runat="server" />

"Seok Bee" <se*****@yahoo.com> wrote in message
news:F7**********************************@microsof t.com...
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

Feb 5 '06 #2

P: n/a
Hi,

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

HTH,
andy
"Seok Bee" <se*****@yahoo.com> wrote in message
news:F7**********************************@microsof t.com...
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

Feb 5 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.