Exemple #1
0
        protected void btnCapNhat_Click(object sender, EventArgs e)
        {
            DM_DVQLYService dm_dviSer = new DM_DVQLYService();
            SYS_Session     session   = (SYS_Session)Session["SYS_Session"];

            if (Session["Add"] + "" == "0")
            {
                var qtCT = (DataRowView)grdDVT.GetRow(grdDVT.FocusedRowIndex);
                db.UPDATE_TTTT_DM_TTKD(txtMA_CANHBAO.Text, txtTT_CANHBAO.Text, txtDX_CANHBAO.Text);
            }
            else
            {
                db.INSERT_TTTT_DM_TTKD(txtMA_CANHBAO.Text, txtTT_CANHBAO.Text, txtDX_CANHBAO.Text);
            }
            pcAddRoles.ShowOnPageLoad = false;
            _DataBind();
        }