コード例 #1
0
        protected void btnLuuSP_Click(object sender, EventArgs e)
        {
            DTOLoaiSP dtoLSP = new DTOLoaiSP();
            dtoLSP.TenLSP = txtLSP.Text;

            DAO_Entity daoLSP = new DAO_Entity();
            if (KiemTraNhap() == "")
            {
                daoLSP.ThemLoaiSP(dtoLSP);
                Response.Redirect("~/QLBophan_Admin/QLCauHinhLoaiSP/LoaiSP.aspx");
            }
            else
            {
                ThemLoaiSP.Visible = true;
                lbLoi.Text = KiemTraNhap();
            }

        }