Why does the following code renders my child action:
<div class='h-l'>
@if (ViewBag.Hide)
{
@Html.Action(MVC.City.GetCitiesList().AddRouteValue("makeBig", false));
}
</div>
but if I delete @ before @Html.Action
, nothing is rendered?
From MSDN
You should use
@
to determine a string as a method. Take a look at ASP.Net @ Symbol