how would I do the equivalent of this embedded in javascript on an MVC2 aspx page:
if (('<%= Model.SomeFunctionEnabled %>' == 'True')
and also a whole function code block on a Razor view page (cshtml) in MVC3?
Something like :
@{
foreach(var d in Model.Employees)
{
....
}
}
Which works fine when embedded in the html part of the view page. Thanks