✅ Can't get this remove button working (entityframework, razorpages)
Can someone tell me why my delete button isn't working?
19 Replies
![](https://utfs.io/f/d7b3c030-92ae-4b30-87fa-d6f7399bdc80-1nq2cb.png)
![](https://utfs.io/f/1fb22a1b-4b1c-4bc2-aebf-236d3b1d2c7c-1nq2cb.png)
these buttons to be specific (in red)
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
more than likely because asp-for doesn't work on buttons.
Ok ill try that
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ill report back since there are always more problems
I click the button but nothing happens?
![](https://utfs.io/f/e715b1b8-6004-4007-adc3-a5e1fad5b1a5-1nq2cb.png)
is this how you write it out?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
@Th'm
![](https://utfs.io/f/b13c0590-bbf8-44a3-940c-e286ab40c43b-1nq2cb.png)
![](https://utfs.io/f/c1dca4bd-ca10-42f6-acc9-68f3de7e754c-1nq2cb.png)
ok so i managed to bind the item id to the button that you click thats next to it, now i just got to delete it but i dont know whats wrong with my code on the model page
I literally just want it to delete the thing and be done with it but its giving me a real headache
how can i just directly tell entityframework to delete
![](https://utfs.io/f/0919a3e8-5a4c-47f8-8821-b81824b83a38-1nq2cb.png)
the item with this id?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
@Th'm i was just fucking around and clicked on create a new razor page, and i saw that you can create many a razor page with CRUD.... it literally solved all my problems... it has its own edit and delete page and stuff, entityframework is a godsend i just didn't know how to use it
but thanks anyways