<%= Html.RadioButtonFor(m => m.AmortizationTermInYears, true, new { propertyName = "AmortizationTermInYears", onchange = "showAmortizationTermInYears();UpdateField(this);", amortizationTermInYearsRadio = "true" })%>
如何讓這個幫助者檢查這個單選按鈕。我試過,我已經指定了true
後加入true
(這是價值不isChecked
)paramater,但沒有編譯,它說沒有RadioButtonFor()
定義有指定的4個參數。用Html.RadioButtonFor檢查的單選按鈕
與標籤C#或ASP.NET MVC – Serghei 2011-04-21 18:06:52