コード例 #1
0
        override protected void OnInit(EventArgs e)
        {
            base.OnInit(e);

            if (ViewControl != null)
            {
                ViewControl.AppId  = ManagementHelper.GetAppIdFromQueryString();
                ViewControl.ViewId = ManagementHelper.GetViewIdFromQueryString();
            }
        }
コード例 #2
0
ファイル: OrderView.ascx.cs プロジェクト: hdgardner/ECF
        /// <summary>
        /// Raises the <see cref="E:System.Web.UI.Control.Init"/> event.
        /// </summary>
        /// <param name="e">An <see cref="T:System.EventArgs"/> object that contains the event data.</param>
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            EditSaveControl.SaveChanges += new EventHandler <SaveControl.SaveEventArgs>(EditSaveControl_SaveChanges);

            if (ViewControl != null)
            {
                ViewControl.AppId     = ManagementHelper.GetAppIdFromQueryString();
                ViewControl.ViewId    = ManagementHelper.GetViewIdFromQueryString();
                ViewControl.MDContext = Mediachase.Commerce.Orders.OrderContext.MetaDataContext;
            }
        }