skip to Main Content

ASP.net multiple select always returns 0 selected items

So i'm trying to build a User multi-select in order to get the participants to a project. This is my code: <form asp-page-handler="ProjectModalPartial"> @*numele metodei*@ <input name="IsValid" type="hidden" value="@ViewData.ModelState.IsValid.ToString()" /> <div class="form-group"> <label asp-for="ProjectsModel.ProjectName">Title</label> <input asp-for="ProjectsModel.ProjectName" class="form-control" placeholder="MyProject1" /> <span…

VIEW QUESTION

Update String inside object inside array mongodb

I have a document that looks something like this { "_id":{ "$oid":"id" }, "side1":[ { "username":"test1", "id":"id1", }, { "username":"test2", "id":"id2", }, { "username":"test3", "id":"id3", } ], "side2":[ { "username":"test4", "id":"id4", }, { "username":"test5", "id":"id5", }, { "username":"test6", "id":"id6", }…

VIEW QUESTION

Mongodb – Mongoose – find object and delete objeto inside array

I have this document : [ { "_id": "626c5fd2aa0fc0e4eef45c94", "productos": [ { "_id": "626d50b621180e291a330333", "nombre": "ciruelas", "descripcion": "marca lala", "codigo": 33, "foto": "https://cdn3.iconfinder.com/data/icons/fruits-52/150/icon_fruit_morango-256.png", "precio": 15, "stock": 30, "timestamp": "2022-04-30T15:06:45.128Z", "__v": 0 } ], "timestamp": "2022-04-29T21:59:35.301Z", "__v": 0 }, { "_id":…

VIEW QUESTION
Back To Top
Search