Ejemplo n.º 1
0
        protected void btnLogout_Click(object sender, EventArgs e)
        {
            Session["call"] = "LOG";
            if (Session["Reviews"] != null)
            {
                string str = Session["Reviews"].ToString();
                if (str.Trim().Length == 0)
                {
                    ModalPopupExtender1.TargetControlID = "btnLogout";

                    ModalPopupExtender1.Show();
                    ModalPopupExtender1.Focus();
                }
                else
                {
                    btnLogout.Visible    = false;
                    btnContactUs.Visible = false;
                    btnChgPswd.Visible   = false;
                    lblUserName.Text     = "";
                    Response.Redirect("~/LogIn.aspx");
                }
            }
            else
            {
                btnLogout.Visible    = false;
                btnContactUs.Visible = false;
                btnChgPswd.Visible   = false;
                lblUserName.Text     = "";
                Response.Redirect("~/LogIn.aspx");
            }
        }