0
我應該怎麼做垂直使我的名單, 也是我想要的文字來單選按鈕asp.net MVC 3 radiobuttonfor好好嘗試一下有repeatdirection
<div class="editor-label">
@Html.LabelFor(m => m.HowDidYouHear, "سمعت عن الملتقى من خلال")
</div>
<div class="editor-field">
@foreach (var opt in Model.HowDidYouHear)
{
<label for="opt">@opt</label>
@Html.RadioButtonFor(m => m.SelectedHowDidYouHear, opt, new { id = opt })
}
</div>