System.Web.UI.WebControls.FormParameter.Evaluate Method

Updates and returns the value of the System.Web.UI.WebControls.FormParameter 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
A System.Web.UI.Control that is associated with the page where the System.Web.UI.WebControls.FormParameter is used.

Returns

An object that represents the updated and current value of the parameter. If the context or the request is null (Nothing in Visual Basic), the FormParameter.Evaluate(System.Web.HttpContext, System.Web.UI.Control) method returns null.

Remarks

The System.Web.UI.WebControls.FormParameter attempts to bind to the form variable every time the FormParameter.Evaluate(System.Web.HttpContext, System.Web.UI.Control) method is called.

The context parameter is used by the FormParameter.Evaluate(System.Web.HttpContext, System.Web.UI.Control) method to retrieve the value of the specified form field from the request. The control parameter is ignored.

Requirements

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