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

I'm trying to use sessions to store variables in .net6, but the values are not getting stored – Asp.net

I'm trying to use sessions to store variables in .net6, I already configured program.cs but the session still not storing the values, using .net6 core with c#. using Microsoft.EntityFrameworkCore; using nsaprojeto.Data; var builder = WebApplication.CreateBuilder(args); builder.Services.AddDistributedMemoryCache(); builder.Services.AddSession(options => { options.IdleTimeout…

VIEW QUESTION
Back To Top
Search