System.Web.UI.TemplateControl.Eval Method

Evaluates a data-binding expression.

Syntax

protected object Eval (string expression)

Parameters

expression
The navigation path from the container to the public property value to place in the bound control property.

Returns

An object that results from the evaluation of the data-binding expression.

Remarks

The value of expression must evaluate to a public property.

The TemplateControl.Eval(string) method calls the DataBinder.Eval(object, string) method using the Page.GetDataItem method to resolve the object reference that the expression is evaluated against.

Requirements

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