I have the following inside a repeater;
<sc:Link runat="server" DataSource='<%# (Container.DataItem as Item).Paths.Path %>' TextField="Title" LinkField="Title" />
This however fails. I have also tried with
<sc:Link runat="server" DataSource='<%# Container.DataItem %>' TextField="Title" LinkField="Title" />
Which also fails. What am i missing?
DataSource should be ID, not item or item.Path.
Item should be the datasource item.
Try setting Item parameter instead of DataSource. I don't have many sc:Link controls in my code, but here is one I know works:
Note it also uses "Field" and not TextField. Hmmmm. In the code behind, the data source is a List collection.
Here's another one, with a control inside it: