asp.net.ph

DataBinder.Eval Method

System.Web.UI Namespace   DataBinder Class


Uses reflection to parse and evaluate a data binding expression against an object at runtime.

Overload List

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 )

Remarks

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.

Example

The following example demonstrates using both overload versions of Eval to declaratively bind to a data source’s field values.

Handling Postbacks from a DataList Template
Run Sample | View Source
See Also

DataBinder Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph