Walkthrough: Creating a Web Site with Membership and User Login
I am now attempting to save the user name and pass it to the application so I can insert the user name into a table when appropriate. I cannot capture the user name. Suggestions please and thank you.
Rod
Shivanand ArurPosted Oct 19, 2012, 4:39 PM
Use the MembershipUser class to fetch the name... Try using this in your code...
MembershipUser newUser = Membership.GetUser()
string Username = newUser.Username;
You will have to use the System.Web.Security namespace to start using the MembershipUser class...
Hope this helps you out...
Please mark this answer as accepted if it helped...
Rodney JohnsonPosted Oct 22, 2012, 10:58 AM