title: How can I render databound values inside of a custom control?
body: <p>I'm placing a custom control inside of an existing repeater template.</p>
  
  <pre><code>&lt;ItemTemplate&gt;
    &lt;custom:MyControl&gt;
      &lt;something&gt;
        &lt;%# Eval("Firstname") %&gt;
      &lt;/something&gt;
    &lt;/custom:MyControl&gt;
  &lt;/ItemTemplate&gt;
  </code></pre>
  
  <p>Is there any way that I can somehow get the value of <code>&lt;%# Eval("Firstname") %&gt;</code> without adding it as a property to my custom control?</p>
  
  <pre><code>&lt;custom:MyControl Firstname='&lt;%# Eval("Firstname") %&gt;' /&gt;
  </code></pre>
  
  <p>I have a bigger need, as in I want to define an entire html structured inner property inside of <code>&lt;something&gt;</code> and it will be a disaster to do this inside of a property.</p>
  
  <p>So, my repeater is databound, and apparently the control I'm placing within it is not databound, yet the values can be passed through via the property tags... </p>
  
  <p>I found another answer stating it wasn't possible, but it's also 5 year old question. <a href="https://stackoverflow.com/questions/5967840/eval-inside-an-asp-net-repeater-doesnt-work-inside-another-control">Eval inside an ASP.net repeater doesn&#39;t work inside another control</a></p>
  
  <p>Grasping at straws, hoping for a solution.</p>