title: Html.RadioButtonFor default checked
body: <p>How can I checked default radio button conditional?
  Following is my code:</p>
  
  <blockquote>
    <p>Enum</p>
  </blockquote>
  
  <pre><code> public enum yesNo
   {
          Yes = 0,
          No = 1
   }
  </code></pre>
  
  <blockquote>
    <p>View</p>
  </blockquote>
  
  <pre><code>&lt;div class="form-group"&gt;
         @Html.LabelFor(model =&gt; model.Member_Addiction, new { @class = "  col-md-3" })
         &lt;div class="col-md-4"&gt;
               @foreach (var e in Enum.GetValues(typeof(RKDYM.clsEnums.yesNo)))
               {
                     &lt;label class="radio-inline"&gt;
                          @Html.RadioButtonFor(model =&gt; model.Member_Addiction, (int)e, new { htmlAttributes = new { @class = "form-control"} })@e.ToString()
                     &lt;/label&gt;
               }
         &lt;/div&gt;
         @Html.ValidationMessageFor(model =&gt; model.Member_Addiction)
  &lt;/div&gt;
  </code></pre>
  
  <blockquote>
    <p>Model</p>
  </blockquote>
  
  <pre><code>[DisplayName("Do you have addiction?")]        
  public bool Member_Addiction { get; set; }
  </code></pre>