title: ASP.Net MVC 3 No Default Selection for RadioButon
body: <p>I am developing an ASP.Net MVC 3 Web Application using Razor Views. Within the View I would like to ask the user a question which can only have a Yes/ No answer, therefore, I am planning on using two Radio Buttons.</p>
  
  <p>I have a ViewModel which I pass to my View, and it looks like this</p>
  
  <pre><code>public class ViewModelFormImmigration
  {
      public int immigrationID { get; set; }
      public int formID { get; set; }
  
      [Required(ErrorMessage = "Please select Yes or No.")]
      public bool euNational { get; set; }
  }
  </code></pre>
  
  <p>In my View I then have the following lines of code to display the radio buttons for both the Yes and No options</p>
  
  <pre><code>@Html.RadioButtonFor(model =&gt; model.euNational, true) &lt;text&gt;Yes&lt;/text&gt;
  @Html.RadioButtonFor(model =&gt; model.euNational, false) &lt;text&gt;No&lt;/text&gt;
  </code></pre>
  
  <p>My problem is that, when the User comes to this View for the first time, I would like neither the Yes or No option selected. At the moment, when I create an instance of my ViewModel (see above), the property <strong>euNational</strong> is defaulted to <strong>false</strong> and when the ViewModel is passed to my View, this means that the option No is automatically selected. </p>
  
  <p>Is there anyway around this so that when the User see's the View for the first time, that no option is not selected by default?</p>
  
  <p>Thanks for your help everyone.</p>