title: How to show checked radio button in edit view in mvc3
body: <p>in  my edit view i can retain value of the fields but the radio button.
  like wen i select the row from grid and click edit it gives me previously saved value for all othr field bt not for radio buttons</p>
  
  <p>how can i set those value
  lik if the saved data contain value of gender as F then</p>
  
  <pre><code>if(gender='f')
   {
      &lt;input type="radio" name="forwhom" value="f" checked="checked"&gt;&lt;/input&gt;
   }
  else
    &lt;input type="radio" name="forwhom" value="m" checked="checked"&gt;&lt;/input&gt;
  </code></pre>
  
  <p>i'm showing my data using 2 partial views as follows</p>
  
  <p>do i have to write any ajax for it??
   please help
  regards!!!</p>