title: ASP.NET MVC disable radio buttons with Razor syntax
body: <p>In an ASP.NET MVC application, I have two radio buttons. Depending on a boolean value in the model, How do I enable or disable the radio buttons? (The values of the radio buttons are also part of the model)</p>
  
  <p>My radio buttons currently look like this -</p>
  
  <pre><code>            @Html.RadioButtonFor(m =&gt; m.WantIt, "false")  
              @Html.RadioButtonFor(m =&gt; m.WantIt, "true")  
  </code></pre>
  
  <p>In the model, I have a property called <code>model.Alive</code>. If <code>model.Alive</code> is <code>true</code> I want to <strong>enable</strong> the radio buttons, else if <code>model.Alive</code> is <code>false</code>, I want to <strong>disable</strong> the radio buttons.
  Thanks!</p>