DataBinder.Eval Method


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Uses reflection to parse and evaluate a data-binding expression against an object at run time.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

System_CAPS_pubmethodSystem_CAPS_staticEval(Object, String)

Evaluates data-binding expressions at run time.

System_CAPS_pubmethodSystem_CAPS_staticEval(Object, String, String)

Evaluates data-binding expressions at run time and formats the result as a string.

Starting in .NET Framework 4.5, you can use model binding to simplify some of the tasks that you had to perform through data-binding in earlier versions. For a tutorial series on using model binding with Web Forms, see Model Binding and Web Forms.

Return to top