This documentation is archived and is not being maintained.
RouteValueExpressionBuilder::EvaluateExpression Method
Visual Studio 2010
Retrieves the value that corresponds to a specified route key.
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::ObjectThe value that corresponds to the URL parameter that is specified for the current page. The method returns nullptr if target is nullptr 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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: