asp.net.ph

Response.ContentEncoding Property

System.Web Namespace   HttpResponse Class


Sets or retrieves the HTTP character set of the output stream.

[ VB ]
Public Property ContentEncoding As Encoding

[ C# ]
public Encoding ContentEncoding {get; set;}

[ C++ ]
public: __property Encoding* get_ContentEncoding ( );
public: __property void set_ContentEncoding ( Encoding* );

[ JScript ]
public function get ContentEncoding ( ) : Encoding;
public function set ContentEncoding ( Encoding );

Property Value

A Encoding object containing information about the character set of the current response.

Exceptions


Exception Type Condition
ArgumentException Occurs when Attempted to set ContentEncoding to a null reference ( Nothing in Visual Basic ).

Example

The following example writes a human-readable description of the character set encoding to the output stream.

Response.Write ( Response.ContentEncoding.EncodingName );
  C# VB

See Also

HttpResponse 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