C
C#3d ago
morry329#

Edit view directs to 404 not found

A beginner's mistake - the problem is that i have been getting Site Not Found 404 error (as per screenshot) while I wanted to display the edit dashboard view on localhost:https://imgur.com/a/mw5wBkD i think the connection between my view (html and js) and controller has gone wrong: https://pastebin.com/n4cfnwLp Could anyone kindly point out what I have been missing out here?
Pastebin
/Edit View/@model WebApplication1.Models.ListingProjectsDTO@{ ...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
3 Replies
Angius
Angius2d ago
Do you have any controller that would respond to Home/EditDashboard?
morry329#
morry329#OP2d ago
No, Home is the only controller here if I am not mistaken so can we assume that this app cannot find that controller (not Homecontroller), which leads to 404?
glhays
glhays2d ago
This line #56 do you need to add the "/" to the end. $.get("/Home/Edit/",{Id:ListingId},function(data)
Want results from more Discord servers?
Add your server