ASP.Net Core MVC - html Select Option retrieve selected object

  • Thread starter Thread starter Geol4549
  • Start date Start date
G

Geol4549

Guest
I have a catalog of 175 items which is filtered to give users a shortened list of options to choose from using an html <Select> <opton> element block. The ItemId is the database key. Users see ItemDescription for selection. Having made a selection the application needs to bring the selected object back to populate a form. The form must enable additional input from the user, like quantity and size. Is it possible to use the ViewBag to bring an object back onto the code side for further manipulation? Or even just the ItemId. Seems like an elementary sequence in any ecommerce scenario, but I'm not sure how to return an object from the html/RazorView.

Thanks

Continue reading...
 
Back
Top