{"id":53395,"date":"2021-09-25T12:48:13","date_gmt":"2021-09-25T12:48:13","guid":{"rendered":"https:\/\/papersspot.com\/blog\/2021\/09\/25\/how-to-do-a-multi-select-list-box-program\/"},"modified":"2021-09-25T12:48:13","modified_gmt":"2021-09-25T12:48:13","slug":"how-to-do-a-multi-select-list-box-program","status":"publish","type":"post","link":"https:\/\/papersspot.com\/blog\/2021\/09\/25\/how-to-do-a-multi-select-list-box-program\/","title":{"rendered":"How to do a Multi-Select List Box program"},"content":{"rendered":"<p>I have a similar &#8220;post&#8221; method that returns the results of these selections. At the moment however, the &#8220;post&#8221; method is only returning the results from one selection when more than one value as been selected. In this instance, more than one value&#8217;s results should be returned. Would someone mind taking a look at my &#8220;post&#8221; method to see what is going wrong? Thankyou.\u00a0 <br \/>Price is negotiable.\u00a0 <\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 [HttpPost] <br \/>\u00a0 \u00a0 \u00a0 \u00a0 public ActionResult Find(FindViewModel viewModel) <br \/>\u00a0 \u00a0 \u00a0 \u00a0 { <br \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 viewModel.PersonViewModel = new PersonViewModel <br \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 { <br \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Organisations = <br \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 new MultiSelectList( <br \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 this.personManager <br \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 .GetAllPeople(),\u00a0 <br \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#8220;Id&#8221;,\u00a0 <br \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#8220;Name&#8221;),\u00a0 <br \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 }; <br \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 if (!this.ModelState.IsValid) <br \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 { <br \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return this.View(viewModel); <br \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 } <br \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 viewModel.SearchResult = this.petManager.FindPets(viewModel.SearchCriteria, int.Parse(Session[&#8220;LoginId&#8221;].ToString())); <br \/>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 return this.View(viewModel); <br \/>\u00a0 \u00a0 \u00a0 \u00a0 } <br \/>I am looking for a reasonable answer, no essays, and high English proficiency preferred. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a similar &#8220;post&#8221; method that returns the results of these selections. At the moment however, the &#8220;post&#8221; method is only returning the results from one selection when more than one value as been selected. In this instance, more than one value&#8217;s results should be returned. Would someone mind taking a look at my [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[20],"class_list":["post-53395","post","type-post","status-publish","format-standard","hentry","category-research-paper-writing","tag-programming"],"_links":{"self":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/53395","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/comments?post=53395"}],"version-history":[{"count":0,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/53395\/revisions"}],"wp:attachment":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/media?parent=53395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/categories?post=53395"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/tags?post=53395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}