Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
27554 Points
4912 Posts
MVP
May 25, 2012 07:34 PM|LINK
Is GetProfile() an extension method because it's not defined on the IIdentity interface?
Here's how I'd get the email (no error/null checking but you can add that):
var email = Membership.GetUser(User.Identity.Name).Email;
BrockAllen
All-Star
27554 Points
4912 Posts
MVP
Re: Get Email from User.Identity.Profile().Email()
May 25, 2012 07:34 PM|LINK
Is GetProfile() an extension method because it's not defined on the IIdentity interface?
Here's how I'd get the email (no error/null checking but you can add that):
var email = Membership.GetUser(User.Identity.Name).Email;
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/