Esempio n. 1
0
        protected void UserDeleteButton_Click(object sender, EventArgs e)
        {
            UserBL userBL = new UserBL();
            Int64 userid = Convert.ToInt64(Session["EditUserID"]);
            userBL.DeactivateUser(userid);
            Session["EditUserID"] = 0;
            this.UsersGridView.DataBind();
            this.UsersGridView.SelectedIndex = -1;
            this.MiniUserFormView.DataBind();
            this.MiniUserDetailsView.DataBind();
            upListView.Update();
            miniDetails.Update();
            EditLinkButton.Visible = false;
              //  ModalPopButton2.Visible = false;
            DeleteLinkButton.Visible = false;

               // ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "script", "GoToTab(2);", true);
        }