Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello guys,
I'm using Umbraco version 7.5.3.
Is there a possibility to render a PartialView within a UmbracoViewPage?
I'm building a grid editor where the user can choose between several templates. My render.cshtml starts with:
@inherits Umbraco.Web.Mvc.UmbracoViewPage<dynamic> @using ClientDependency.Core.Mvc
I've got 4 different templates, so basically I just thought I do a simple 'Switch-case' and I use the following code :
@Html.partial("Templatename");
Unfortunately that doesnt work and returns me an error. Has someone an idea how to solve this problem or maybe a workaround?
MFG David
I solved it.
Sorry for this post.
I've added this using:
@using System.Web.Mvc.Html
Sorry again
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Render Partial in UmbracoViewPage
Hello guys,
I'm using Umbraco version 7.5.3.
Is there a possibility to render a PartialView within a UmbracoViewPage?
I'm building a grid editor where the user can choose between several templates. My render.cshtml starts with:
I've got 4 different templates, so basically I just thought I do a simple 'Switch-case' and I use the following code :
Unfortunately that doesnt work and returns me an error. Has someone an idea how to solve this problem or maybe a workaround?
MFG David
I solved it.
Sorry for this post.
I've added this using:
Sorry again
is working on a reply...