I wanna bind a list of controls in my controller.
I don't have any problem with text box, check box or drop down.
For instance,
@Html.TextBox("tblContactPhones[0].description")
@Html.DropDownList("tblContactPhones[0].phoneLable", PhoneType)
@Html.TextBox("tblContactPhones[1].description")
@Html.DropDownList("tblContactPhones[1].phoneLable", PhoneType)
These have same names that bind dynamically in my controller.
public virtual ActionResult Create(tblContact entity)
as u see these names aren't same
but I cant do this for a radio group.
they have to have same names for correct selecting.
and I can't bind this in a list.
any ideas ?