title: How to make the default radio button to be unchecked while using Razor in MVC?
body: <p>I am using radio button like this, </p>
  
  <pre><code> &lt;div class="form-group"&gt;
                  @Html.LabelFor(x =&gt; x.gender)
                  &lt;div class="form-check"&gt;
                      &lt;label class="form-check-label"&gt;
                          @Html.RadioButtonFor(x =&gt; x.gender, "Male")
                          Male
                      &lt;/label&gt;
                  &lt;/div&gt;
                  &lt;div class="form-check"&gt;
                      &lt;label class="form-check-label"&gt;
                          @Html.RadioButtonFor(x =&gt; x.gender, "Female")
                          Female
                      &lt;/label&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>here i have two radio button which is rendered in the page, i want the radio button to be rendered and without the default selection of any of the radio button, how can i do this</p>
  
  <p>i tried like this but it is not working</p>
  
  <pre><code> @Html.RadioButtonFor(x =&gt; x.gender, "Female", new { @checked = "true" })
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <pre><code>public class student
      {             
          [DisplayName("Gender")]
          [Required(ErrorMessage = "please select gender")]
          public gender gender { get; set; }
      } 
  
  public enum gender
      {
          male,
          female
      }
  </code></pre>