I have the following asp.net mvc 3 brander code, where "item" is my model,
<a @if (item.Selected) { class="youarehere" } href="@item.Href" title="@item.Title">@item.Description</a>
This code causes the following error:
CS1513: } expected
which indicates
class="youarehere"
part of the code, but I could not understand why. Can someone help indicate how to fix this? Thanks.
source share