asp.net.ph

Response.Status Property

System.Web Namespace   HttpResponse Class


Sets the Status line that is returned to the client.

[ VB ]
Public Property Status As String

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

[ C++ ]
public: __property String* get_Status ( );
public: __property void set_Status ( String* );

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

Property Value

Setting the status code causes a string describing the status of the HTTP output to be returned to the client. The default value is "200 OK".

Exceptions


Exception Type Condition
HttpException Occurs when Status is set to an invalid status code.

Remarks

Status has been deprecated in favor of StatusDescription and is provided only for compatibility with previous versions of ASP. With ASP.NET, use StatusDescription instead.

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