예제 #1
0
        private void RenderViewUserControl(ViewContext context, ViewUserControl control)
        {
            if (!String.IsNullOrEmpty(BaseView.MasterPath))
            {
                throw new InvalidOperationException("A master name cannot be specified when the view is a ViewUserControl.");
            }

            control.ViewData = context.ViewData;
            control.RenderView(context);
        }
예제 #2
0
        private void RenderViewUserControl(ViewContext context, ViewUserControl control)
        {
            if (!String.IsNullOrEmpty(MasterPath))
            {
                throw new InvalidOperationException();
            }

            control.ViewData = context.ViewData;
            control.RenderView(context);
        }