Beispiel #1
0
 /// <summary>
 /// btnLoginOut Click
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void lbtnLogout_Click(object sender, EventArgs e)
 {
     FormsAuthentication.SignOut();
     SessionInfo.Clear();
     //Server.Transfer("Login.aspx");
     Response.Redirect("/Page/Login.aspx");
 }
Beispiel #2
0
        /// <summary>
        /// btnLoginOut Click
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void lbtnLogout_Click(object sender, EventArgs e)
        {
            FormsAuthentication.SignOut();
            SessionInfo.Clear();
            lbtnLogout.Style["display"] = "none";

            btnLogin.Style["display"]   = "inline";
            ddRemember.Style["display"] = "inline";


            ValidationSummary.Style["display"] = "none";
            PrivateValidation.Style["display"] = "none";

            //Server.Transfer("Login.aspx");
            //Response.Redirect("Default.aspx");
        }