1º How the @Html.EditorForModel(Model.ElementAt(i)) really works, if "model.count()" is 5. Why do I get a dimension of "5*5" elements?
@model List<model>
@for (int i = 0; i < Model.Count();i++ )
{
@Html.EditorForModel(Model.ElementAt(i))
}
实际给我5个要素的唯一尝试是:
@model List<model>
@Html.EditorForModel(Model)
2ª In the template for model I am using Javascript to change a value of the model.Numbers, using a "GetElementById("NumbersX")":
@Html.TextBoxFor(m => m.Numbers, new { id = "NumbersX" })
是否有任何人知道执行这项任务的更好方式,或已经履行的职能?