Whats the different between Membership.GetUser and Profile.GetProfile if i wants to return a specific users information?
Whats the different between Membership.GetUser and Profile.GetProfile if i wants to return a specific
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Membership and Profile are two completely different things. The Membership.GetUser providers authentication for an application and designates if the user is logged in, while the Profile is something that can be used to describe a user given properties that have been defined in the web.config that are type safe and customized for an applicaiton.
EDIT:
To follow up a little more, a User object that is returned from Membership.GetUser() has information like username, password, security question / answer.
Profile information can contain anything that you want to know about a user, such as first name, last name, DOB, favorite type of ice cream, etc. Just as long as you set this up in the web.config: