protected void SaveAll_Click(object sender, EventArgs e) { if (Membership.GetUserNameByEmail(UserEmail.Value) == null) { user.Change_Email(UserEmail.Value); } if (Membership.GetUser(UserName.Value) == null) { user.Change_Login(UserName.Value); } if (OldPass.Value != "") { user.Change_Password(OldPass.Value, RegPass.Value); } user.Change_Description(wcomments.Value); user.Change_Name(UserRName.Value); user.Change_Url(UserUrl.Value); user.Change_Image(ImageSrc.Value); FormsAuthentication.SignOut(); FormsAuthentication.SetAuthCookie(user.Login, true); Response.Redirect("/profile"); }