ASP.NET Repeater datasource bound to a function. Would it call the function twice?

Posted by Frenchie on Stack Overflow See other posts from Stack Overflow or by Frenchie
Published on 2010-04-28T20:54:53Z Indexed on 2010/04/28 20:57 UTC
Read the original article Hit count: 350

Filed under:
|
|
|
|

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?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about databinding