public void Process(LoadLayoutArgs args)
 {
     Assert.ArgumentNotNull((object) args, "args");
     if (System.Web.HttpContext.Current != null && !String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["id"]))
     {
         var id = new ID(System.Web.HttpContext.Current.Request["id"]);
         if (ControllerAction.GetControllerAction(MvcLayoutDataProvider.parentId, id) != null ||
             ControllerAction.GetControllerAction(MvcSubLayoutDataProvider.parentId, id) != null)
         {
             args.Body = args.Html = "It is not possible to design MVC layouts";
             
             args.AbortPipeline();
         }
     }
 }
Example #2
0
        public void Process(LoadLayoutArgs args)
        {
            Assert.ArgumentNotNull((object)args, "args");
            if (System.Web.HttpContext.Current != null && !String.IsNullOrEmpty(System.Web.HttpContext.Current.Request["id"]))
            {
                var id = new ID(System.Web.HttpContext.Current.Request["id"]);
                if (ControllerAction.GetControllerAction(MvcLayoutDataProvider.parentId, id) != null ||
                    ControllerAction.GetControllerAction(MvcSubLayoutDataProvider.parentId, id) != null)
                {
                    args.Body = args.Html = "It is not possible to design MVC layouts";

                    args.AbortPipeline();
                }
            }
        }
Example #3
0
 protected abstract void DoProcess(LoadLayoutArgs args);
Example #4
0
 public void Process(LoadLayoutArgs args)
 {
     KernelContainer.Inject(this);
     this.DoProcess(args);
 }