Probably a stupid question but I am new to MVC.
So far in my Razor I could say @HTML.TextBoxFor(t => t.EmailAddress)
but now I have a for-each:
foreach(var q in Model.Questions)
{
// so here the t => t.EmailAddress syntax is not working anymore.
}
I asked my question in the code sample above. So when I am inside a for-each loop how can I can use @HTML.TextBox
? because now it doesn't get the lambda syntax anymore.