Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have a LoginName1, LoginView and Login Status on my Master Page. Whenever a user logs himself in, the LoginName1 displays (as for example):

Welcome omarakhtar

Now the only thing I want is how to store this omarakhtar into some variable? Kindly, let me know.

Thanks in regards.
Posted

1 solution

Look here[^]. The LoginName control displays a user's login name if the user has logged in using ASP.NET membership.

Read all about LoginName control here:
LoginName Class[^]

Details about all the Login controls here[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900