title: Set radio button checked item from ASP MVC 3 controller
body: <p>Below is a group of radio buttons that appear on my view. I am able to retrieve the selected item via this simple code</p>
  
  <pre><code>string criteria = filter["criteria"];
  </code></pre>
  
  <p>however I do not know how to retain the selected item. Once the controller posts back to the view the default radio button is always selected. </p>
  
  <pre><code>    &lt;form method="post"&gt;
          @Html.TextBox("searchValue", ViewBag.CurrentFilter as string, new { placeholder = "Search" })
          &lt;input type="image" src="@Url.Content("~/Content/Images/Filter.bmp")" alt="Filter" style="padding-top: 0px;" /&gt;
              &lt;span class="error" style="clear: both;"&gt;
                  @ViewBag.ErrorMessage
             &lt;/span&gt;
          &lt;a href="#" style="padding-left: 30px;"&gt;&lt;/a&gt;
          &lt;br /&gt;
          &lt;br /&gt;
          &lt;input type="radio" name="criteria" id="bankName" value="bankName" checked="true"/&gt;
          &lt;label for="bankName"&gt;Bank Name&lt;/label&gt;
          &lt;input type="radio" name="criteria" id="EPURL" value="EPURL" /&gt;
          &lt;label for="EPURL"&gt;EPURL&lt;/label&gt;
          &lt;input type="radio" name="criteria" id="specialNotes" value="specialNotes" /&gt;
          &lt;label for="SpecialNotes"&gt;Special Notes&lt;/label&gt;
          &lt;input type="radio" name="criteria" id="email" value="email" /&gt;
          &lt;label for="email"&gt;Email&lt;/label&gt;
          &lt;input type="radio" name="criteria" id="dynamicsId" value="dynamicsId" /&gt;
          &lt;label for="dynamicsId"&gt;Dynamics ID&lt;/label&gt;
          &lt;input type="radio" name="criteria" id="stat" value="stat" /&gt;
          &lt;label for="fixed"&gt;Agent ID &amp;nbsp;&lt;/label&gt;
      &lt;/form&gt;
  </code></pre>