I found the Membership.GetUser() but it doesn't seem like it supports retriving user information by the UserId Guid. Does anyone have a nice and clean way of doing this?
public MembershipUser User { // get...;set...;}
my code is fail here...
User = Membership.GetUser(dr.GetValue(dr.GetOrdinal("Id"))); //fail
error message: specified method is not supported
Guid.Parse() and Guid.TryParse() are only available in .NET 4. string (guessing that's what's returned from dr.GetValue() to a GuidSo try this instead:
MembershipUser m = Membership.GetUser(new Guid(
dr.GetValue(dr.GetOrdinal("Id"))
));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With