© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•16mo ago
morry329#

OnClick delete button directs to 404 Error

I am about to bang my head against the keyboard, so I appreciate any advice.
I added a crimson red delete button on my MVC view as per screenshot attached. The button redirects me to 404 onclick.
Diese localhost-Seite wurde nicht gefunden
Für folgende Webadresse wurde keine Webseite gefunden: http://localhost:5001/Home/,.
HTTP ERROR 404
Diese localhost-Seite wurde nicht gefunden
Für folgende Webadresse wurde keine Webseite gefunden: http://localhost:5001/Home/,.
HTTP ERROR 404
( This localhost site is not found, for the following webaddress no website is found: http://localhost:5001/Home/,. in German)

I think the error lies in my ajax but I am so blind. This is my code https://pastebin.com/7QsPYyDL, could anyone kindly point me in the right direction? The delete button was supposed to delete a card view one by one and reload the page.
Bildschirmfoto_2024-11-04_um_23.53.39.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Edit view directs to 404 not found
C#CC# / help
14mo ago
MVVM .net MAUI delete button not working
C#CC# / help
2y ago
✅ EF Core delete error
C#CC# / help
3y ago
✅ Method doGet create error 404.
C#CC# / help
3y ago