I have a controller which returns a view.
Within the view I render a common shared partial view, and pass parameters in to it:
<div class="tab-pane" id="tab-sla">@{Html.RenderPartial(
"./_sla",
new
{
ContentTitle = "Service Level"
});
}
</div>
However whenever in the partial view _sla
I try and access the property ContentTitle, it throws an error 'object' does not contain a definition for 'ContentTitle'
.
If i dump the model properties with @Model.ToString()
it shows { ContentTitle = "Service Level" }
.
Can someone please advise what I am doing wrong and how this can be fixed?