I have a model that have list properties.
public class Class01
{
List<string> PropA {get; set;}
List<string> PropB {get; set;}
}
now in my view, i want to create @Html.TextBoxFor for each of the item in each of the list. i am not good with lamba expressions and so cant figureout how to provide a valid lambda expression for the above requirement.
Note : i dont want to prefer the following way :
@Html.TextBoxFor(m => m.PropA[0])
I want to loop through all properties and then nested loop through each items for creating textboxes.
please help me. Thank you.