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?
Imgur
Untitled Album
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
Do you have any controller that would respond to
Home/EditDashboard
?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?
This line #56 do you need to add the "/" to the end.
$.get("/Home/Edit/",{Id:ListingId},function(data)