1. 在SectionEdit.aspx页面的form中填入数据,点击按钮提交。(表示层)
  2. 调用btnSave_Click(object sender, EventArgs e)函数
  3. 检查section是否已经存在,if (this._activeSection.Id == -1 || this._activeSection.PlaceholderId != oldPlaceholderId)
  4. SaveSection(); 保持新的section
    1. 检查是否已经添加过if (this._activeSection.Id > 0)(控制层)
    1. 如果是,更新base.CoreRepository.UpdateObject(this._activeSection);
    2. 否则添加base.CoreRepository.SaveObject(this._activeSection);(数据层)
      1. 添加成功的画跳转到Context.Response.Redirect(String.Format("NodeEdit.aspx?NodeId={0}", this.ActiveNode.Id));
      2. 否则Context.Response.Redirect("Sections.aspx");
                           
posted on 2009-03-28 23:50  石榴  阅读(255)  评论(0)    收藏  举报