The one-way databind Eval
function belongs to DataBinder
class and can be accessed in a page through TemplateControl.Eval
method that calls the DataBinder.Eval
method using the GetDataItem
method to resolve the object reference that the expression is evaluated against, phew!
OK... so, how the two-way databind Bind
function works? It belongs to which class?
As far as I could tell the "Bind" is not a method but rather a language construct.
Source and further reading: http://weblogs.asp.net/leftslipper/archive/2007/06/29/how-asp-net-databinding-deals-with-eval-and-bind-statements.aspx