Friday, June 14, 2013

How to set default value to a radio button in ASP.NET MVC 3

            Yes
            @Html.RadioButtonFor(model => model.TermsAndConditions, "True")
            No
            @Html.RadioButtonFor(model => model.TermsAndConditions, "False", new { Checked = "checked" })
             

No comments:

Post a Comment