public class FormModel { public string ID { get; set; } public int No { get; set; } public string type { get; set; } public string value { get; set; } public string[] Ctype //Multiple Check Boxes { get; set; } } and on View i am using this <table> <tr> <td>Enter ID:</td> <td> @Html.TextBoxFor(m => m.ID)</td> </tr> <tr> <td>Enter Number of controls wanted:</td> <td>@Html.TextBoxFor(m => m.No)</td> </tr> <tr> <td>Select type of control:</td> <td> @Html.DropDownListFor(m => m.type,items)</td> <td>@Html.CheckBoxFor(m=> m.Ctype)</td> </tr> <tr> <td>Value:</td> <td>@Html.TextBoxFor(m => m.value)</td> m is the reference of model class </tr></table>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)