Ejemplo n.º 1
0
        /// <summary>
        /// 点击编辑按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnEdit_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                try
                {
                    ZhuJi.Portal.Domain.ContentItem domainContentItem = new ZhuJi.Portal.Domain.ContentItem();
                    UIMapping.BindControlsToObject(domainContentItem, this);

                    ZhuJi.Portal.IDAL.IContentItem contentItem = ZhuJi.AOP.Operator.WrapInterface(typeof(ZhuJi.Portal.NHibernateDAL.ContentItem)) as ZhuJi.Portal.IDAL.IContentItem;
                    contentItem.Update(domainContentItem);
                }
                catch (Exception ex)
                {
                    ShowMessage(ex);
                }
            }
        }