asp.net mvc - How to use Html.RenderAction in SparkView Engine? -
When I use it like this I get an error
! {Html.RenderAction ("Action", "Controller")}
I had to switch to the webform view engine and it was
To make it work.
The error I get is "Can not change zero in characters"
& lt;% HTMLRender Action ("Action", "AV"); & Gt%;
is identical
# HTML Render Action ("Action", "Avi"); In spark syntax,
{} expression is expected to return the results and be written in the stream; RenderAction does not return anything, it writes the stream itself, this is the reason why you have to call it in the code block and can not do it inside the expression.
Comments
Post a Comment