Esempio n. 1
0
        protected void btnIsDelete_Click(object sender, EventArgs e)
        {
            bool status = false;

            try
            {
                LinkButton lnkBtn = (LinkButton)sender;
                GridViewRow row = (GridViewRow)lnkBtn.NamingContainer;
                string userId = userListGridView.Rows[row.RowIndex].Cells[0].Text.ToString();
                UserBLL userbll = new UserBLL();
                userbll.DeleteUser(userId);
                status = true;
                if (status)
                {
                    GetUserList();

                }
            }
            catch (Exception ex)
            {

                string message = ex.Message;
                if (ex.InnerException != null) { message += " --> " + ex.InnerException.Message; }
                MyAlertBox("ErrorAlert(\"" + ex.GetType() + "\", \"" + message + "\", \"\");");
            }
        }