コード例 #1
0
        protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            dalPDN    dal        = new dalPDN();
            string    UserID     = Session["user"].ToString();
            string    GSBH       = Session["congty"].ToString();
            Label     lblMaPhieu = (Label)GridView1.Rows[e.RowIndex].FindControl("lblpdno");
            DataTable dt         = dal.LayTrangThaiCuaPhieuTheoNguoiDuyet(GSBH, lblMaPhieu.Text.Trim(), UserID);

            if (dt.Rows.Count != 0)
            {
                lblTrangThai1.Text = dt.Rows[0]["YnName"].ToString();
            }
        }