title: create radio button from code behind but with an onclick?
body: <p>I had a table in front end...</p>
  
  <pre><code>&lt;table&gt;
  &lt;tr&gt;
  &lt;td style="padding-right:8px"&gt;
  &lt;input id="mmapMS" type="radio" name="Layers" value="mmapMS" onclick="addLayer()" style="display:none"/&gt;
  &lt;label class="Layer-cc mMS" for="mMS" data-tip="mMS"&gt;&lt;/label&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Need to change the radio button to run from the back end...all good so far (below) but I cant find out how to call a js function when I click the radio button??...onclick="addLayer()" any ideas...thanks</p>
  
  <pre><code>                TableRow row = new TableRow();
                  TableCell cell = new TableCell();
  
                  HtmlInputRadioButton btn = new HtmlInputRadioButton();
                  btn.ID = mapGenieImage;
                  btn.Value = mapGenieImage;
                  btn.Visible = false;
                  cell.Controls.Add(btn);
  
                  Label lb = new Label();   
                  lb.CssClass = "Layer-cc " + mapImage;
                  cell.Controls.Add(lb);
  
                  row.Cells.Add(cell);
                  table.Rows.Add(row);
  </code></pre>