I'm placing a custom control inside of an existing repeater template.
<ItemTemplate>
<custom:MyControl>
<something>
<%# Eval("Firstname") %>
</something>
</custom:MyControl>
</ItemTemplate>
Is there any way that I can somehow get the value of <%# Eval("Firstname") %>
without adding it as a property to my custom control?
<custom:MyControl Firstname='<%# Eval("Firstname") %>' />
I have a bigger need, as in I want to define an entire html structured inner property inside of <something>
and it will be a disaster to do this inside of a property.
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...
I found another answer stating it wasn't possible, but it's also 5 year old question. Eval inside an ASP.net repeater doesn't work inside another control
Grasping at straws, hoping for a solution.