FormParameter.Evaluate(HttpContext, Control) FormParameter.Evaluate(HttpContext, Control) FormParameter.Evaluate(HttpContext, Control) Method

Definition

Updates and returns the value of the FormParameter object.

protected public:
 override System::Object ^ Evaluate(System::Web::HttpContext ^ context, System::Web::UI::Control ^ control);
protected internal override object Evaluate (System.Web.HttpContext context, System.Web.UI.Control control);
override this.Evaluate : System.Web.HttpContext * System.Web.UI.Control -> obj

Parameters

context
HttpContext HttpContext HttpContext

The current HttpContext of the request.

control
Control Control Control

A Control that is associated with the page where the 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 Evaluate(HttpContext, Control) method returns null.

Remarks

The FormParameter attempts to bind to the form variable every time the Evaluate method is called.

The context parameter is used by the Evaluate method to retrieve the value of the specified form field from the request. The control parameter is ignored.

Applies to

See also