System.Web Namespace HttpCookie Class
Sets or retrieves an individual cookie value.
[ VB ]
Public Property Value As String
[ C# ]
public string Value {get; set;}
[ C++ ]
public: __property String* get_Value ( );
public: __property void set_Value ( String* );
[ JScript ]
public function get Value ( ) : String;
public function set Value ( String );
The value of the cookie. The default value is a null reference ( Nothing in Visual Basic ).
The following example sets the value of an existing cookie to "abc123".
[ VB ]
myCookie.Value = "abc123"
[ C# ]
myCookie.Value = "abc123";
HttpCookie Members