Click to See Complete Forum and Search --> : Retrieve User Name from Login Control


simonevaristo
March 28th, 2006, 10:37 AM
I have a Web page with a Login Control in Visual Studio 2005. I would like to retrieve the user name typed into the Login Control into a TexBox1 in the next page.



How can I do this??

THANX

mmetzger
March 28th, 2006, 01:16 PM
Look at the HttpContext.Current.User object - there should be an entry representing the name.

jayender.vs
March 28th, 2006, 11:26 PM
I have a Web page with a Login Control in Visual Studio 2005. I would like to retrieve the user name typed into the Login Control into a TexBox1 in the next page.
How can I do this??
THANXAssume your user has already successfully logged in, you can retrieve its userid by: user.identity.name