Reputation: 9081
I need help : i need to know the value of for example reception0
:
<td >
<label name="tag@(i)">@Model[1][i]._tag</label>
</td>
<td>
<input type="text" value="@Model[1][i]._client" name="client@(i)"/>
</td>
<td>
<input type="text" value="@Model[1][i]._reception" class="datepicker" name="reception@(i)"/>
</td>
<td>
<input type="text" value="@Model[1][i]._cloture" class="datepicker" name="cloture@(i)"/>
</td>
<td>
@Html.ActionLink("enregistrer","Index", new {identificateur = Model[1][i].Id, Pages = "1", _reception ="reception"+""+i.ToString(), _cloture ="cloture"+""+i.ToString(), _client ="client"+""+i.ToString(), tag = "tag"+""+i.ToString() })
</td>
My problem is that i get _reception = reception0
but i need the value of reception0
not its name.
How can i fix my snippet?
Upvotes: 2
Views: 413
Reputation: 82297
Use the value that you use for your input in the link helper
@Html.ActionLink( ... , _reception = Model[1][i]._reception, ... )
Upvotes: 1