示例#1
0
文件: edit.aspx.cs 项目: no10pc/Light
 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);
     }
 }