i want call a function in aspx page in the repeater:
<asp:Repeater ID="Rpt_M" runat="server">
<HeaderTemplate></HeaderTemplate>
<ItemTemplate>
<a href="noktaDetay.aspx?id=1" ><%# Container.DataItem(1)%></a>
<%Dim yorumid As Integer = Eval("DnAd")
Dim yorumadet = yorumsay(yorumid)
Dim yorumyaz As String = yorumadet + " adet yorum var"
If yorumadet = 0 Then yorumyaz = "bla bla bla"%>
<a href="yorumlar.aspx?id=1"><%=yorumyaz%></a>
</ItemTemplate>
<FooterTemplate></FooterTemplate>
</asp:Repeater>
When I run the code I get this error:
Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
How can I set the value for yorumid instead of using eval("DnAd")? Thank you for any help.