开发者

how to get userid in membership?

开发者 https://www.devze.com 2022-12-22 05:45 出处:网络
i know how to get userid for a current user MembershipUser currentUser = Membership.GetUser(); Guid currentUserId = (Guid)currentUser.ProviderUserKey;

i know how to get userid for a current user

 MembershipUser currentUser = Membership.GetUser();
 Guid currentUserId = (Guid)currentUser.ProviderUserKey;

But for my application i need to get userid of user who开发者_如何转开发 are not loginned in also. Because i need to assign the userid to different table which i m using.

Thank you in Advance


Use the Membership.GetUser(username, userIsOnline) method, passing false as the userIsOnline parameter.

0

精彩评论

暂无评论...
验证码 换一张
取 消