开发者

how to get userid in membership?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜