Live Demo

Response Object Deep Dive

Buffer control, content types, headers, and status codes

Buffer Control

Response.Buffer controls whether output is sent immediately or buffered.

This text was written with Response.Write. Buffer is True.
Response.Flush was called. This text was sent before the rest of the page was processed.

Content Type

Current ContentType: text/html

Custom Headers & Status

Set custom HTTP headers and different status codes.

Cache Control & Expires

Control browser/proxy caching behavior.

Expires: CacheControl: Charset: utf-8

Redirect Demo

Clicking these links sends a 302 redirect via Response.Redirect.