title: How to get the value of lambda expression in asp .net mvc2?
body: <p>I have a action result method where it gives values from the database and Iam passsing this values to the view and the values will be populated in the textboxes but i have radio button to be selected depending on the value of the database,example if the value is male then radiobutton as to be selected else radiobutton female aas to be selected.I have written the code </p>
  
  <pre><code>&lt;% if(model=&gt;model.Gender) {%&gt;
               &lt;%= Html.RadioButtonFor(model =&gt; model.Gender, "Male", "Checked")%&gt; Male
               &lt;%} else { %&gt;
               &lt;%= Html.RadioButtonFor(model =&gt; model.Gender, "Female", "Checked")%&gt; Female&lt;%} %&gt;    
  </code></pre>
  
  <p>but Iam getting a error like "Cannot convert lambda expression to type 'bool' because it is not a delegate type"       .Please tel me how to check the value of Gender and make selection accordingly.</p>