Using HTML.TextBoxFor to loop through items in a model [duplicate]
问题 This question already has answers here : Post an HTML Table to ADO.NET DataTable (2 answers) Closed 3 years ago . 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