C
C#2y ago
pape

✅ Can't get this remove button working (entityframework, razorpages)

Can someone tell me why my delete button isn't working?
19 Replies
pape
papeOP2y ago
pape
papeOP2y ago
pape
papeOP2y ago
these buttons to be specific (in red)
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Saber
Saber2y ago
more than likely because asp-for doesn't work on buttons.
pape
papeOP2y ago
Ok ill try that
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
pape
papeOP2y ago
ill report back since there are always more problems I click the button but nothing happens?
pape
papeOP2y ago
pape
papeOP2y ago
is this how you write it out?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
pape
papeOP2y ago
@Th'm
pape
papeOP2y ago
pape
papeOP2y ago
pape
papeOP2y ago
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
pape
papeOP2y ago
pape
papeOP2y ago
the item with this id?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
pape
papeOP2y ago
@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
Want results from more Discord servers?
Add your server