I'm a little bit confused with the use of @. In the following code I first wrote Html.ActionLink(...)
instead of @Html.ActionLink(...)
because I was in a if
block (C# code). So, I would like to understand exactly when I do have to use @ and when I don´t have to use it.
<td width="32%" align="center">
@if (Model.SeccionImpresos != null)
{
@Html.ActionLink("IMPRESOS", "Index", "Trabajo", null, null, "#impresos", new { id = Model.Id }, null);
}
</td>
I appreaciate any help on this.