I select football radio button and when I click on submit and after postback
cricket is selected again.football radio button loses value,
<span>
<input type="radio" id="Cricket" name="SportType" value="1" checked="checked" />Cricket
</span>
<span>
<input type="radio" id="Football" name="SportType" value="2" />Football
</span>
<span>
<input type="radio" id="Boxing" name="SportType" value="3" />Boxing
</span>
I get correct value on server end
I am using Asp.net MVC 3
,Firefox 9.0.1
You should use the
Html.RadioButtonhelper to generate radio buttons if you want them to retain values: