Within my view I need multiple input boxes for a dynamic number of values. For example, if I have a dynamic amount of input boxes (shown here http://jsfiddle.net/skip405/9sX6X/6/). How would I pass all these values through to my controller?
At the moment, I have one input box in my view, set up like so:
<div class="col-md-10">
@Html.TextBoxFor(m => m.StudentName, new { @class = "form-control", @id = "current", @name = "content" })
</div>
My model defines StudentName as such:
[Required]
[Display(Name = "Student name")]
public string StudentName { get; set; }
My first thought would be to set up an array within the model and store each of the data items within it, although I don't have the expertise in either ASP.NET or C# to do this.
Thanks in advance!