DOT NET Core 6 Razor Page Assistance with Passing Data as a parameter
Budget: $10 – $30 AUD
I have a .cshtml view which list a row of participants with name and email detail. It also has a checkbox against each row so that the user can select which Participants to email in a batch. On pressing a 'Email Selected Participants' the list of selected items must be Posted to the cshtml.cs. The front end works well, and the checkboxes can be checked / unchecked.
What I need to have implemented is a way to pass the List<Object> of selected rows only to the OnPostSendEmails method. The method gets called but the list is empty.
I understand that this can be achieved using HiddenFor structures in the .cshtml view. But I can't get that to work.
What I need to have implemented is a way to pass the List<Object> of selected rows only to the OnPostSendEmails method. The method gets called but the list is empty.
I understand that this can be achieved using HiddenFor structures in the .cshtml view. But I can't get that to work.