Example #1
0
 private void doPost()
 {
     string cname = Request["cname"];
     light.BLL.leftmenu bll = new light.BLL.leftmenu();
     if (!bll.Exists(cname))
     {
         model = bll.GetModel(int.Parse(ViewState["pid"].ToString()));
         model.cnname = cname;
         bll.Update(model);
         WebMessageBox.ShowMessageBox("修改成功", this);
     }
     else
     {
         WebMessageBox.ShowMessageBox("该菜单名已经存在", this);
     }
 }