title: C# Populate Radiobuttons in a TreeView on PageLoad with a Database Returned Value
body: <p>I am using a TreeView control, and I would like to be able to use radiobuttons instead of checkboxes.  I am currently creating the radiobuttons using the following code: </p>
  
  <pre><code>e.Node.ChildNodes.Add(new TreeNode(String.Format("&lt;input type='radio' value='{0}' name='rblMain' /&gt; {1}", value, name), value));
  </code></pre>
  
  <p>Now my question is how can I repopulate the node with the value that I am returned from the database to the correct node and have it be selected?</p>
  
  <p>Thanks, Andrew</p>