In my MVC4 web application I have hard coded radio button list in my view as below
<input type="radio" name="CopyrightCategory" value="NotKnown" checked>
<input type="radio" name="CopyrightCategory" value="CopyrightCategory1A">xxxxxxxx
<input type="radio" name="CopyrightCategory" value="CopyrightCategory1B">yyyyyyyy
And I get value from the model as
@Html.LabelFor(m => m.CopyrightCategory, new { @class = "control-label" })
Based on the value of m.CopyrightCategory I need to set the item as checked e.g. if the value of m.CopyrightCategory is "CopyrightCategory1B" then we will have it like this
<input type="radio" name="CopyrightCategory" value="NotKnown">
<input type="radio" name="CopyrightCategory" value="CopyrightCategory1A">xxxxxxxx
<input type="radio" name="CopyrightCategory" value="CopyrightCategory1B" checked>