System.Web.UI.WebControls.Parameter.Evaluate Method

Updates and returns the value of the System.Web.UI.WebControls.Parameter object.

Syntax

protected virtual object Evaluate (System.Web.HttpContext context, System.Web.UI.Control control)

Parameters

context
The current System.Web.HttpContext of the request.
control
The System.Web.UI.Control the parameter is bound to. If the parameter is not bound to a control, the control parameter is ignored.

Returns

An object that represents the updated and current value of the parameter.

Remarks

The default implementation of the Parameter.Evaluate(System.Web.HttpContext, System.Web.UI.Control) method is to return null in all cases. Classes that derive from the System.Web.UI.WebControls.Parameter class override the Parameter.Evaluate(System.Web.HttpContext, System.Web.UI.Control) method to return an updated parameter value. For example, the System.Web.UI.WebControls.ControlParameter object returns the value of the control that it is bound to, while the System.Web.UI.WebControls.QueryStringParameter object retrieves the current name/value pair from the System.Web.HttpRequest object.

Requirements

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