Пример #1
0
 private void doPost()
 {
     string cname = Request["cname"];
     light.BLL.leftmenu bll = new light.BLL.leftmenu();
     light.Model.leftmenu model = new light.Model.leftmenu();
     model.addtime = DateTime.Now;
     model.cnname = cname;
     model.enname = light.Common.Hz2Py.Convert(cname);
     model.isopen = 1;
     model.parentid = int.Parse(ViewState["pid"].ToString());
     bll.Add(model);
     WebMessageBox.ShowMessageBox("添加成功", this);
 }