I have a radio button list like this:
<%=Html.RadioButtonFor(m => m.Gender,"Male")%>
I want this button selected by default. How do I do this?
I have a radio button list like this:
<%=Html.RadioButtonFor(m => m.Gender,"Male")%>
I want this button selected by default. How do I do this?
if u are using Razor view strong you can use use radio button like this
as your need correct it as Razor view
Aspx view
or in the controller action that renders this view:
TRY:
Worked in my case.