System.Web.UI.WebControls.CookieParameter.Evaluate Method

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

Returns

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

Remarks

The context parameter is used by the CookieParameter.Evaluate(System.Web.HttpContext, System.Web.UI.Control) method to retrieve the cookies collection and the value of the cookie that the System.Web.UI.WebControls.CookieParameter 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