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
I have the following partial view, which is called LatestTweetsNew.cshtml :
@model string <h1> Load the tweets for @model </h1>
I have a SurfaceController as shown here, which is meant to render the partial view:
public class TwitterController : SurfaceController { public ActionResult GetTweets(string twitterHandle) { string PARTIAL_VIEW_FOLDER = "~/Views/Partials"; return PartialView(PARTIAL_VIEW_FOLDER + "/LatestTweetsNew.cshtml", twitterHandle); } }
I try to render the partial view on my Home.cshtml
@inherits Umbraco.Web.Mvc.UmbracoViewPage<ContentModels.Home> @using ContentModels = Umbraco.Web.PublishedModels; @using Umbraco.Core.PropertyEditors.ValueConverters; @{ Layout = "Main.cshtml"; } @Html.Partial("Hero") @Html.Partial("CallToAction") <!-- Latest News Articles --> @Html.Partial("LatestNews") @Html.Action("GetTweets", "Twitter,", new { twitterHandle = "HDeveloped" })
Yet I get:
You have a typo in controller name:
Twitter, -> Twitter
Helps to get fresh eyes, been staring at it for far to long. Thanks.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
No route in the route table matches the supplied values.
I have the following partial view, which is called LatestTweetsNew.cshtml :
I have a SurfaceController as shown here, which is meant to render the partial view:
I try to render the partial view on my Home.cshtml
Yet I get:
You have a typo in controller name:
Helps to get fresh eyes, been staring at it for far to long. Thanks.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.