Codecore Logo
Quick Search
»
Advanced Search »

Response Object

RSS
Encapsulates HTTP-response information from an ASP.NET operation.


Instance Methods

Clear

Clears all content output from the buffer stream.

Syntax:

void Clear()

Example:


Response.Clear();

End

Sends all currently buffered output to the client and stops execution of the page.

Syntax:

void End()

Example:


Response.End();

Flush

Sends all currently buffered output to the client.

Syntax:

void Flush()

Example:


Response.Flush();

Redirect( String )

Redirects a client to a new URL and specifies the new URL.

Syntax:

void Redirect( String url )

Parameters:

url: The target location.

Example:


Response.Redirect("home.j9sp");

Redirect( String, Boolean )

Redirects a client to a new URL. Specifies the new URL and whether execution of the current page should terminate.

Syntax:

void Redirect( String url, Boolean endResponse)

Parameters:

url: The target location.

endResponse: Indicates whether execution of the current page should terminate.

Example:


Response.Redirect("home.j9sp", true);

Write

Writes information to an HTTP response output stream.

Syntax:

void Write( Object value )

Parameters:

value: The value to write to the HTTP output stream.

Example:


Response.Write("Hello World!");

See Also

Application Object
Request Object
Server Object
Session Object
Privacy Policy | Conditions Of Use

Copyright ©2014 Codecore Technologies, All rights reserved.