title: MVC3 (Razor) radio buttons checks
body: <p>In first,I have to create some radio buttons in a mvc3 partial view.</p>
  
  <p>When I'm on the screen I need to select only one radio button and retrieved a specific value.</p>
  
  <p>How can I do this (with JS or C# for example) ?</p>
  
  <pre><code>            &lt;div id="UserDeleteInfosField"&gt;
                  &lt;p&gt;
                      @Html.RadioButton("HasUserLeave", new { id = "rb1" })
                      @UserAccountResources.UserLeave
                      @Html.HiddenFor(x =&gt; x.UserLeave)   
                  &lt;/p&gt;
                  &lt;br /&gt;
                  &lt;p&gt;
                      @Html.RadioButton("HasUserTransfer", new { id = "rb2" })
                      @UserAccountResources.UserTransfer
                      @Html.HiddenFor(x =&gt; x.UserTransfer)   
                  &lt;/p&gt;
                  &lt;br /&gt;
                  &lt;p&gt;
                      @Html.RadioButton("HasUserDetachment", new { id = "rb3" })
                      @UserAccountResources.UserDetachment
                      @Html.HiddenFor(x =&gt; x.UserDetachment)   
                  &lt;/p&gt;
                  &lt;br /&gt;
                  &lt;p&gt;
                      @Html.RadioButton("HasUserRetirement", new { id = "rb4" })
                      @UserAccountResources.UserRetirement
                      @Html.HiddenFor(x =&gt; x.UserRetirement)   
                  &lt;/p&gt;
                  &lt;br /&gt;
                  &lt;p&gt;
                      @Html.RadioButton("HasUserStatus", new { id = "rb5" })
                      @UserAccountResources.UserStatus
                      @Html.HiddenFor(x =&gt; x.UserStatus)   
                  &lt;/p&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>Thanks in advance !</p>
  
  <p>Ars_n</p>