I am not understanding that how we can use @Html.RadioButtonFor in MVC Please help me............
How to use @Html.RadioButtonFor in MVC4 Razor
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pradeep ShetRank #595 · 4K reputationPosted Jan 27, 2015, 12:17 AM EST
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' .