<input name="FaxPayType" type="radio" value="G" @if(Model.GetFaxPayType!="C"){checked}/>
这样写错在哪里,应该怎么写,请教高手指教。
@(Model.GetFaxPayType!="C"?"checked":"")
@Html.RadioButtonFor(x => x.Gender,"radioValue",new{@checked=true})
<fieldset>
<legend>@Model.Question</legend>
@foreach (var x in Model.Choices)
{
<text>@Html.RadioButton(Model.QuizItemId.ToString(), x.Description, x.IsCorrect)
@x.Description<br/></text>
}
</fieldset>