asp.net.ph

Response.Charset Property

System.Web Namespace   HttpResponse Class


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

[ VB ]
Public Property Charset As String

[ C# ]
public string Charset {get; set;}

[ C++ ]
public: __property String* get_Charset ( );
public: __property void set_Charset ( String* );

[ JScript ]
public function get Charset ( ) : String;
public function set Charset ( String );

Property Value

The HTTP character set of the output stream.

Exceptions


Exception Type Condition
HttpException Occurs when Charset was set after headers were sent.

Remarks

Charset can be set to a null reference ( Nothing in Visual Basic ) to suppress the Content-Type header.

Example

The following example takes action only if the character set of the output stream is Central European ( ISO ).

if ( Response.Charset == "iso-8859-2" ) {
   // ... do whatever here ...
}
  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