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); }
private void RenderViewUserControl(ViewContext context, ViewUserControl control) { if (!String.IsNullOrEmpty(MasterPath)) { throw new InvalidOperationException(); } control.ViewData = context.ViewData; control.RenderView(context); }