Click here to Skip to main content
15,917,176 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to display login user data on successful login.I want to use membership GetMethod() how can I do this
Posted
Comments
KaushalJB 13-Nov-14 1:58am    
What have you tried till now, update your question with the code that you have applied and point where the actual issue is ?? Please Ellaborate more for the issue that you are facing !!
Member 11026061 13-Nov-14 3:17am    
I have not tried anything till now but I want to use membership to load login user data
Sinisa Hajnal 13-Nov-14 2:01am    
Google it.
Mukesh Pr@sad 13-Nov-14 2:09am    
better to learn this
http://msdn.microsoft.com/en-us/library/yh26yfzy(v=vs.100).aspx

1 solution

C#
MembershipUser  user = Membership.GetUser(User.Identity.Name);
//you can access properties as below, e.g : email 
string email =user.Email;
 
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