Posted on: 5/18/2014 2:59:56 PM | Views : 427

User.Identity.Name is always null .  Please help .
protected void LoginGamma_Authenticate(object sender, AuthenticateEventArgs e) { //string username = FormsAuthentication.Decrypt(Request.Cookies[FormsAuthentication.FormsCookieName].Value).Name; if (Membership.ValidateUser(LoginGamma.UserName,LoginGamma.Password)) { e.Authenticated = true; Session["Username"] = LoginGamma.UserName.ToString(); //Response.Redirect("~/GammaIndex.aspx"); string username = User.Identity.Name; FormsAuthentication.SetAuthCookie(LoginGamma.UserName.ToString(), true); MembershipUser user = Membership.GetUser(); if (user != null) { string name = user.UserName; } } } Many Tha ...

Go to the complete details ...