FormParameter.Evaluate Method

Note: This method is new in the .NET Framework version 2.0.

Updates and returns the value of the FormParameter object.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

protected:
virtual Object^ Evaluate (
	HttpContext^ context, 
	Control^ control
) override
protected Object Evaluate (
	HttpContext context, 
	Control control
)
protected override function Evaluate (
	context : HttpContext, 
	control : Control
) : Object

Parameters

context

The current HttpContext of the request.

control

A Control that is associated with the page where the FormParameter is used.

Return Value

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 method returns null.

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.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: