System.Web.UI Namespace DataBinder Class
Uses reflection to parse and evaluate a data binding expression against an object at runtime.
1. Evaluates data binding expressions at runtime.
Eval ( Object, String )
2. Evaluates data binding expressions at runtime and formats the output as text to be displayed in the requesting browser.
Eval ( Object, String, String )
Starting in .NET Framework 4.5, the Object parameter given in the above overload list, which references the object against which the expression is evaluated, is optional and thus may be ommitted.
When used declaratively on a Web Forms page, this method can simplify casting from one type to another.
The following example demonstrates using both overload versions of Eval to declaratively bind to a data source’s field values.
DataBinder Members