mvc3 Areas - RenderPartial erroring
My RenderPartial is error-ing with
CS150开发者_如何学运维2: The best overloaded method match for
`'System.Web.WebPages.WebPageExecutingBase.Write(System.Web.WebPages.HelperResult)'
has some invalid arguments`
/Areas/Admin/News/View.cshtml
has this:
@Html.RenderPartial("~/Areas/Admin/Asset/Views/ViewAsset.cshtml")
The above view only says Hello
atm.
The Asset Controller does not have a controller method for ViewAsset
as I did not think i need one.
Where am I going wrong?
thanks
Have you tried
@Html.Partial("ViewAsset");
Html.RenderPartial("~/Areas/Admin/Views/Asset/ViewAsset.cshtml");
Path was issue! Could not see the forest for the trees. Sorry readers.
精彩评论