✅ Can't get this remove button working (entityframework, razorpages)
Can someone tell me why my delete button isn't working?
19 Replies
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?
is this how you write it out?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
@Th'm
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
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