System.Web.UI.WebControls.CookieParameter.CookieName Property

Gets or sets the name of the HTTP cookie that the parameter binds to.

Syntax

[System.ComponentModel.DefaultValue("")]
public string CookieName { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The CookieParameter.CookieName property identifies an HTTP cookie, which is represented by an System.Web.HttpCookie object and is available through the current System.Web.HttpRequest object. If the HTTP cookie is not available in the current System.Web.HttpRequest object, the CookieParameter.Evaluate(System.Web.HttpContext, System.Web.UI.Control) method binds the parameter to the value of the Parameter.DefaultValue property, if it is set. If the Parameter.DefaultValue property is not set, the CookieParameter.Evaluate(System.Web.HttpContext, System.Web.UI.Control) method fails to bind the parameter to a value.

Requirements

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