edited data/user input not saved in db
I have a card view as per screenshot attached
Right now my edit button fires up the edit view onclick, but once the save button is clicked the edited data is nowhere to be displayed. I have checked if my db saved it (it did not)
`
Here I wanted to just edit the ListingName anastasia, whose id is set to 1. I clicked the edit button on the card with id 1, the text field and save button appear. Once the new input is in text field and the save button is clicked.. Seems to me like the newly typed input became one of the NULLs in this data table. Needless to say, I don't see it on my card view frontend either.
Could anyone kindly point me in the right direction? No idea what made it NULL.
My full code: https://pastebin.com/qRf5e5tv
Pastebin
/* Edit Controller */public JsonResult EditListingJ(int Id) //Fo...
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.
0 Replies