I have a radio button list like this
<%=Html.RadioButtonFor(m => m.Gender,"Male")%> I should make this button selected by default.
Any inputs ??
I have a radio button list like this
<%=Html.RadioButtonFor(m => m.Gender,"Male")%> I should make this button selected by default.
Any inputs ??
<%: Html.RadioButtonFor(x => x.Gender, "Male", new { @checked = "checked" }) %>
or in the controller action that renders this view:
model.Gender = "Male";
return View(model);