protected void btnThemMoi_Click(object sender, EventArgs e) { LoaiSanPhamDTO lsp = new LoaiSanPhamDTO(); lsp.TenLoaiSP = txttenloai.Text; if (LoaiSanPhamBUS.ThemLoaiSp(lsp)) { load(); Response.Write("<script>alert('Thêm mới loại sản phẩm thành công!')</script>"); } else { Response.Write("<script>alert('Thêm mới loại sản phẩm thất bại!')</script>"); } }