Values post in a Listbox without being selected

Asked

Viewed 26 times

0

It is possible to make a Post of the values of a Listbox without them being Selected?

My Listbox:

@Html.ListBoxFor(m => m.SelectedCatequistas, new MultiSelectList(ViewBag.SelectedCatequistas, "PessoaID", "Nome"), htmlAttributes: new
                           {
                               @class = "form-control",
                               Size = 15,
                               style = "width: 100%;"
                           })
  • If you mount the listbox with the values coming from the server why do you want to send them back? They are already there.

  • When I edit values if I do not select them it does not reach the controller.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.