Esempio n. 1
0
        protected void btnCapNhat_Click(object sender, EventArgs e)
        {
            LoaiSanPhamDTO lsp = LoaiSanPhamBUS.LayDSLoaiSanPhamID(txtid.Text);

            lsp.TenLoaiSP = txttenloai.Text;
            if (LoaiSanPhamBUS.CapNhatLSP(lsp, txtid.Text))
            {
                load();
                Response.Write("<script>alert('Cập nhật loại sản phẩm thành công!')</script>");
            }
            else
            {
                Response.Write("<script>alert('Cập nhật loại phẩm thất bại!')</script>");
            }
        }