1 在项目分前后台的时候,有时候前台打开的文章列表,某些文章这时可能就被管理员删除了,这时会报错,所以要给出提示,不能报黄页错误,代码比较简单

Business.HealthEducation MyHE = new Business.HealthEducation();
                MyHE = Business.HealthEducation.GetModel(HE_id);
                if (MyHE == null)
                {
                    ShowAlert("该文章已被管理员删除!");
                    return;
                }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-21
  • 2022-12-23
  • 2021-05-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-17
  • 2022-03-03
  • 2021-11-01
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-19
相关资源
相似解决方案