1
I need to pass two parameters to a page, when I’m trying to pass one, I do it this way:
<a asp-page="/ContaReceber/Edit" asp-route-id="@item.Id;" class="btn btn-sm btn-success">Editar</a>
I tried to pass something like:
<a asp-page="/ContaReceber/Edit" asp-route-id="@item.Id; @item.PessoaId" class="btn btn-sm btn-success">Editar</a>
I tried to put only a comma, name the parameter, but it doesn’t work, as I can pass more than one parameter to the page.
You have to pass an Asp-route for each parameter. <a Asp-controller="/Contareceber/Edit" Asp-action="Edit" Asp-route-id="@item.Id" Asp-route-username="@item.Username">Edit</a>
– Netinho Santos