So I pass in my model to my view. The model has a list of records that have certain fields, one of the fields is a List of type string that holds numerous string values (ListHoldingString). I foreach through my model into a table. When I click the row I want to be able to pass the "List of type string that holds numerous string values" thats in the first column to a new controller where I can then use it to do other stuff.
I did try it with ajax but I couldnt retrieve the list.
I dont know how I can achieve this, has anyone got any ideas? Here is my code so far.
<tbody>
@foreach (var n in Model.ModelList)
{
<tr>
<td class="hidden">@n.ListHoldingString</td>
</tr>
}
</tbody>
If no one has a solution, would a viable option be to change the list to a string thats comma delimited and post it a controller than does what it needs to do and need pass than on to another controller that displays the information?