asp.net.ph

HttpCookie.Value Property

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 );

Property Value

The value of the cookie. The default value is a null reference ( Nothing in Visual Basic ).

Example

The following example sets the value of an existing cookie to "abc123".

[ VB ]
myCookie.Value = "abc123"


[ C# ]
myCookie.Value = "abc123";
See Also

HttpCookie Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph