skip to Main Content

Razorpage navigation leads to page self – Asp.net

I am trying to navigate from the main Menu Index to my CreateJob file: I am also needing to give the user Id with the link. I tried 3 different ideas: <li><a href="../Jobs/CreateJob?id=test">Job anlegen3</a></li> <a asp-page="../Jobs/CreateJob?id=test">Job anlegen</a> @Html.ActionLink("Job anlegen", "Jobs",…

VIEW QUESTION

Unable to get input value in Razor Page – Html

Do you know what to put at the asp-route-word, I am not able to find it. This is my code: <form class="d-flex" method="get"> <input class="form-control me-sm-2" type="search" placeholder="Search" id="searchWord" /> <button class="btn btn-secondary my-2 my-sm-0" type="submit" asp-controller="Word" asp-action="Index" asp-route-word="???"> Rechercher…

VIEW QUESTION

button onclick="window.location.href…" not redirecting to View in different folder – Html

<form> <div> <input for="IPMaquina" type="text" placeholder="IP da Máquina"> <button>Estado Máquina</button> <button type="button" onclick="window.location.href='JCash_SubPages/VNEconfig';" style="text-decoration: none; color: black;">Configuração</button> </div> For some reason the onclick action won't redirect to the VNEconfig View and leads to a 404 Error If I move it…

VIEW QUESTION
Back To Top
Search