System.Web.UI.WebControls.SessionParameter.Evaluate Method

Updates and returns the value of the System.Web.UI.WebControls.SessionParameter 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 Web Forms page where the System.Web.UI.WebControls.SessionParameter is used.

Returns

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

Remarks

The System.Web.UI.WebControls.SessionParameter object attempts to bind to the value of the session variable every time the SessionParameter.Evaluate(System.Web.HttpContext, System.Web.UI.Control) method is called.

The context parameter is used by the SessionParameter.Evaluate(System.Web.HttpContext, System.Web.UI.Control) method to retrieve the name/value pair that the System.Web.UI.WebControls.SessionParameter object binds to. 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