mardi 1 mars 2016

How to Display checkboxes in MVC view then get the post back in group of checkboxes

Using MVC Entity Framework in ASP.NET (using C#)

I want to list all my candyBar objects: with checkable check-boxes for sweetStat and sourStat property on the web page and then record their check status by receiving group of all diferent CandyBar objects with their changed/unchanged properties.

namespace MySol.Model
    {
      public class CandyBar
      {
        public bool sweetStat {set; get;}
        public bool sourStat {set; get;}
      }
   }

Thanks




Aucun commentaire:

Enregistrer un commentaire