The following code snippet is causing a compilation error that I am unable to pinpoint. I tried removing the 2 from the last brace. I tried the AntiForgery without braces - no luck.
The error is CS1501: No overload for method 'Write' takes 0 arguments
Any suggestions?
<div id="header-wrapper">
<div id="header">
<div id="menu-wrapper">
@if (Page.User.Identity.IsAuthenticated){
@Html.Telerik().Menu().Name("mainnav").BindTo("main").Effects(x => x.Toggle())
}
</div>
@if (Page.User.Identity.IsAuthenticated){
<form action="@Url.Action("Logoff", "Account")" id="formLogout" method="POST">
@{ Html.AntiForgeryToken(); }
<a href="" id="logout" onclick="$('#formLogout').submit();return false;"></a>
</form>
@}
<div id="subnav"></div>
</div>
</div>
