binding the checkboxfor from the view in mvc in asp.net RRS feed

  • Question

  • User87195929 posted

    Hi All

    I have CheckboxFor control  in view but i am unable to bind it from

    the collection ...

     @foreach (var m1 in Model.hb1)
    <div class="alert-info">



    I am geting the value from the m1,, but I am unable to bind it for checkBoxFor coutrol

    m1 having  m1.hobbyname and m1.hobbyid  as the property

    but i  am not able to bind,,,,please Assist me

    thanks and regards


    Monday, March 8, 2021 11:26 AM

All replies