public override void ExecuteResult(JContext jc) { jc.Items["__viewResult__"] = ViewName; jc.Items["__viewResult_IsFile__"] = IsFile; if (!jc.RenderContent) { jc.Context.Response.Write(new TemplatedControl() { SkinName = ViewName, UsedInMvc = !ViewName.StartsWith("/"), OverrideSkinName = true, Templated = true }.Execute()); } }