System.Web.Compilation.ResourceExpressionBuilder.EvaluateExpression Method

Returns a value from a resource file.

Syntax

public override object EvaluateExpression (object target, System.Web.UI.BoundPropertyEntry entry, object parsedData, ExpressionBuilderContext context)

Parameters

target
The object containing the expression.
entry
The object that represents information about the property bound to by the expression.
parsedData
The object containing parsed data as returned by the erload:System.Web.Compilation.ResourceExpressionBuilder.ParseExpression method.
context
Contextual information for the evaluation of the expression.

Returns

An object associated with the parsed expression. The parsed expression contains the class name and resource key.

Remarks

This method is called when an expression of the form <%$ Resources: someResourceKey %> is encountered in a page that uses the no-compile feature. It retrieves the appropriate value from a key/value pair in a resource file.

Requirements

Namespace: System.Web.Compilation
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0