How to use radio button list in asp.net mvc?

Radio button list in mvc

Radio button list in mvc razor.

Follow below Solution:-

@Html.RadioButtonFor(Model => Model.Gender, true) Male

@Html.RadioButtonFor(Model => Model.Gender, false) Female

About the Author

avatar