protected void SubmitButton_Click(object sender, EventArgs e) { if (Page.IsValid) { pageSection.Content = MyContent.Value; bll_pageSection.Update(pageSection); WebUtility.ShowAlertMessage("保存成功!", "pageSectionManage.aspx" + param); } }
protected void SubmitButton_Click(object sender, EventArgs e) { if (Page.IsValid) { pageSection.Title = MyTitle.Value; pageSection.InitContent = InitContent.Value; if (pageSection.Pkid > 0) { //更改 bll_pageSection.Update(pageSection); WebUtility.ShowAlertMessage("保存成功!", "pageSectionManage.aspx" + param); } else { //增加 pageSection.Content = InitContent.Value; pageSection.CreateTime = DateTime.Now.ToString(); bll_pageSection.Insert(pageSection); WebUtility.ShowAlertMessage("新增成功!", Request.RawUrl); } } }