Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string Id;
- string value;
- int id
- string title (id of model title)
- *some other property*
- List<Title> listTitle = GetTitles();
- ViewBag.TitleList = listTitle;
- <div>
- @Html.LabelFor(model => model.Title)
- @foreach (String val in ViewBag.TitleList)
- {
- @Html.RadioButtonFor(model => model.Title, val)
- }
- </div>
Add Comment
Please, Sign In to add comment