Last updated: August 26, 2026.
The ASP Response object controls the HTTP response body, status, headers, cookies, and redirects.
Write a safe response
<%
Response.ContentType = "text/html"
Response.Charset = "utf-8"
Response.CacheControl = "no-store"
Response.Status = "200 OK"
Dim message
message = Request.QueryString("message")
Response.Write "<p>" & Server.HTMLEncode(message) & "</p>"
%>Common members
| Member | Purpose |
|---|---|
Write | Write response content |
Status | Set the HTTP status |
AddHeader | Add an HTTP header |
Cookies | Set response cookies |
Redirect | Send a redirect response |
End | Stop processing the page |
HTML-encode untrusted text, validate redirect destinations, and set secure cookie attributes at the IIS or application layer where Classic ASP lacks direct support.