'm doing a page with asp.net 2.2 and c #. I have 3 pages Razor. One with a form and two others, one with a search engine and another with an activity search engine. Using a button from the form redirected to the other two. What I am not able to do is pass the values (through a selection button) name and age of the personnel page and the same with the activity and the number of hours per week. Both the staff and the activities are simple classes that bring the database data sql (for this I have no problems). I tried to pass the ID with:
<a asp-route-id="@item.Id" asp-page="Formulario" class="btn btn-success btn-sm">Selecionar</a>
Controlleraction method and based on that the redirection could be done with the parameters. - Rahul Sharma