Пример #1
0
    void IMasterView.Initialize( ViewContext context )
    {
      InitializeView( context );

      Document = (IHtmlDocument) Scope;


      HttpContext.Trace.Write( "JumonyMasterView", "Begin GetViewHandler" );
      var handler = GetHandler( VirtualPath );
      HttpContext.Trace.Write( "JumonyMasterView", "End GetViewHandler" );

      HttpContext.Trace.Write( "JumonyMasterView", "Begin Process" );
      OnPreProcess();
      ProcessScope( handler );
      OnPostProcess();
      HttpContext.Trace.Write( "JumonyMasterView", "End Process" );


      Document.DataBind( ViewContext.ViewData, HtmlBinding.ElementBinders, HtmlBinding.ExpressionBinders, new ActionUrlBinder( Url, Document.HtmlSpecification ) );


      RenderAdapters = GetRenderAdapters( handler );
    }
Пример #2
0
        void IMasterView.Initialize(ViewContext context)
        {
            InitializeView(context);

            Document = (IHtmlDocument)Scope;


            HttpContext.Trace.Write("JumonyMasterView", "Begin GetViewHandler");
            var handler = GetHandler(VirtualPath);

            HttpContext.Trace.Write("JumonyMasterView", "End GetViewHandler");

            HttpContext.Trace.Write("JumonyMasterView", "Begin Process");
            OnPreProcess();
            ProcessScope(handler);
            OnPostProcess();
            HttpContext.Trace.Write("JumonyMasterView", "End Process");


            Document.DataBind(ViewContext.ViewData, HtmlBinding.ElementBinders, HtmlBinding.ExpressionBinders, new ActionUrlBinder(Url, Document.HtmlSpecification));


            RenderAdapters = GetRenderAdapters(handler);
        }