65
rated 0 times
[
69]
[
4]
/ answers: 1 / hits: 48469
/ 14 Years ago, fri, march 4, 2011, 12:00:00
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
More From » asp.net-mvc-3