title: Find HTML radio button inside repeater
body: <p>In a repeater I have following button:</p>
  
  <pre><code>  &lt;input type="radio" name="mainSelection" id="rbtn" /&gt;
  </code></pre>
  
  <p>I want to check on of ratio button as True. So I am doing this <code>onItemDataBound</code> Event</p>
  
  <p>How Can I find this button on the <code>OnItemDataBount</code> Event. <code>RepAddress_OnItemDataBound</code></p>
  
  <p>This is my code:</p>
  
  <pre><code>protected void RepAddress_OnItemDataBound(object sender, RepeaterItemEventArgs e)
   {
    if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
     {
      // I cannot use ---&gt; RadioButton rb = (RadioButton)e.Item.FindControl("rbtn");  
     // becuase its not an asp Radio Button.
  
    //I cannot use--&gt; HtmlGenericControl rb = e.Item.FindControl("rbtn") as HtmlGenericControl;
  
     if (//some condition)
     {
      rb.Checked = true; // That's the reason I need to find the button.
     }
     else
     {
      rb.Checked = false;
      }
    }
  }
  </code></pre>