Hi Team
I have a razor from the form, basically the logic once i click the span icon it must route me to the next page(page does exist). I have tried to use jquery to call the actioname and its controller name, but it was not routing me directly but loads and do nothing and there are no js conflict when inspecting the element from the browser.
// view.cshmtl
@model SHEQ_NCR.Models.CapturingForm
@{
ViewBag.Title = "SHEQ NCR Capturing Form";
var url = Url.Action("CorrectiveCreate", "Home");
}
SHEQ NCR Capturing Form
Switch Pages
3 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit MohantyPosted Mar 1, 2024, 5:40 AM
You can use the Razor-defined URL in the jQuery code:
Or
Abhishek YadavPosted Mar 1, 2024, 6:03 AM
Jignesh KumarPosted Mar 1, 2024, 5:13 AM
Hello,
You can use below one to redirect to another page using Jquery,