ASP.NET Repeater datasource bound to a function. Would it call the function twice?
- by Frenchie
In the code behind I have a function that returns a List(Of SomeClass):
rptRepeater.DataSource = SomeFunction(SomeVariable)
rptRepeater.DataBind()
In the html I have a basic repeater layout and am using the below code to get the Properties of each object returned.
<%#Databinder.Eval(Container.DataItem, "Parameter1")%
My question is, would there ever be a case that it would execute the Function more than once?