I am having trouble with the following code:
@Html.RenderPartial("_SortDisplayPage", new ViewDataDictionary { { "bottomClass", "pagingBottom" } })
It gives the error:
Cannot implicitly convert type void to object
I think it’s something small but cannot find it…
You want
@Html.PartialnotRenderPartial. RenderPartial writes directly to the response and doesn’t return a value. Partial returns an MvcHtmlString, which the @ operator will write to the response.