I know that this code works just fine to validate field.
<%: Html.TextBox("FirstName", ViewData["FirstName"], new { maxlength = 200 })%>
<%: Html.ValidationMessage("FirstName", "*")%>
And I guess that possible that dynamic generated name of the control to validate should work as well. But it does't.
<% for (int i = 0; i < numberOfGuests; i++)
{ %>
First Name: <%: Html.TextBox("FirstName_" + i) %>
<%: Html.ValidationMessage("FirstName_" + i, "*") %>
<% } %>
So at this case no validation at all. Am I missing something?