public void btnSave_Click(object sender, EventArgs e) { hm.BLL.ed_page bll = new hm.BLL.ed_page(); string strErr = ""; if (this.txtRemark.Text.Trim().Length == 0) { strErr += "内容不能为空!\\n"; } if (strErr != "") { MessageBox.Show(this, strErr); return; } int Id = int.Parse(lblId.Text); int nodeId = int.Parse(litId.Text); string title = litName.Text; string remark = this.txtRemark.Text; hm.Model.ed_page model = bll.GetModel(Id); model.nodeId = nodeId; model.title = title; model.remark = remark; model.pic = ""; bll.Update(model); Maticsoft.Common.MessageBox.ShowAndRedirect(this, "保存成功!", "../media/list.aspx?id=" + model.nodeId); }