How can I access UserId
in ASP.NET Membership without using Membership.GetUser(username)
in ASP.NET Web Application Project?
Can UserId
be included in Profile
namespace next to UserName
(System.Web.Profile.ProfileBase
)?
I decided to write authentication of users users on my own (very simple but it works) and I should done this long time ago.
My original question was about UserId and it is not available from:
System.Web.HttpContext.Current.User.Identity.Name