title: Simple Asp.Net MVC2 Binding question: How to get an EditorFor to render a Radio Button Group?
body: <p>Just thinking out loud about the subject, If I have the following:</p>
  
  <pre><code> &lt;%= Html.EditorFor(m =&gt; m.Gender, "Gender")
  </code></pre>
  
  <p>And I want it to render two radio buttons:</p>
  
  <pre><code> O Male  O Female
  </code></pre>
  
  <p>Assuming the class just has a string to hold the value, what would the Gender.ascx look like if we were to pass the Gender values using something like</p>
  
  <pre><code> ViewData["Gender"] = new string[] {"Male", "Female"};
  </code></pre>