private void Page_Init(object sender, EventArgs e) { MembershipUser user; if (!User.Identity.IsAuthenticated) { Membership.ValidateUser("Guest","guest"); FormsAuthentication.SetAuthCookie("Guest", false); user = Membership.GetUser("Guest"); var b=Context.User.Identity.Name; } } protected void Page_Load(object sender, EventArgs e) { MembershipUser user=Membership.GetUser(); }
NULL
Page_Init()
Membership.GetUser()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)