RouteValueExpressionBuilder::EvaluateExpression Method (Object^, BoundPropertyEntry^, Object^, ExpressionBuilderContext^)

.NET Framework (current version)
 

Retrieves the value that corresponds to a specified route key.

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

public:
virtual Object^ EvaluateExpression(
	Object^ target,
	BoundPropertyEntry^ entry,
	Object^ parsedData,
	ExpressionBuilderContext^ context
) override

Parameters

target
Type: System::Object^

The control that the expression is bound to.

entry
Type: System.Web.UI::BoundPropertyEntry^

The property that the expression is bound to.

parsedData
Type: System::Object^

(This parameter is not used in this implementation.)

context
Type: System.Web.Compilation::ExpressionBuilderContext^

Properties for the control or page.

Return Value

Type: System::Object^

The value that corresponds to the URL parameter that is specified for the current page. The method returns null if target is null or if it does not derive from Control.

ASP.NET calls this method when an expression of the form <%$ RouteValue:urlparameter %> is encountered in a no-compile page. This method overrides the EvaluateExpression method by calling the GetRouteValue method. It gets the Page object from the context parameter, and it gets the expression, the control type, and the property name from the entry parameter.

.NET Framework
Available since 4.0
Return to top
Show: