System.Web.UI.WebControls.ControlParameter.Evaluate Method

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

Syntax

protected override object Evaluate (System.Web.HttpContext ctx, System.Web.UI.Control control)

Parameters

ctx
Documentation for this section has not yet been entered.
control
The System.Web.UI.Control that the parameter is bound to.

Returns

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

Remarks

The System.Web.UI.WebControls.ControlParameter object attempts to bind to the System.Web.UI.Control object and property every time the ControlParameter.Evaluate(System.Web.HttpContext, System.Web.UI.Control) method is called. The ControlParameter.Evaluate(System.Web.HttpContext, System.Web.UI.Control) method returns the value of the control's property that is identified by the combination of the ControlParameter.ControlID and ControlParameter.PropertyName properties.

The System.Web.UI.WebControls.ControlParameter class never uses the Parameter.DefaultValue property, which is inherited from System.Web.UI.WebControls.Parameter, when binding to a control's property value.

Note:

In this implementation of the method, the context parameter is ignored. If the control parameter is null, null is returned.

Requirements

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