2
@using (Html.BeginForm("MinhaAction", "MeuController", FormMethod.Post ))
{
<div>
<table>
<thead>
<tr>
<th>Empresa</th>
<th>Cliente</th>
<th>Situação</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
<td><a href="@Url.Action("MinhaAction", "MeuController", item)">@item.Empresa</a></td>
<td><a href="@Url.Action("MinhaAction", "MeuController", item)">@item.Cliente</a></td>
<td><a href="@Url.Action("MinhaAction", "MeuController", item)">@item.Situacao</a></td>
</tr>
}
</tbody>
</table>
</div>
}
Is it possible to submit a form this way? What is the solution to this question?
I don’t understand. What problem faced?
– Vinícius Gobbo A. de Oliveira
My intention was that the user clicking on any cell data of this table the system would have to save this object and pass to my View via Post without for that I add a button (with Submit) in this table.
– Reinaldo Guilherme