I am not understanding that how we can use @Html.RadioButtonFor in MVC Please help me............
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pradeep ShetPosted Jan 27, 2015, 5:17 AM
WHen your view si strongly type that is where you will be using RadioButtonFor().
@Html.RadioButtonFor() is mainly used to bind model directly with html element.
@Html.RadioButtonFor(s=>s.PropertyName)
This will create a ratio button with name = 'PropertyName' .