Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
Response Object
All Collections
All Methods
All Objects
All Properties
METHOD: Response.AddHeader
Response.
AddHeader
Name, Value
The
AddHeader
method adds a new named HTTP header with a specific value to the HTTP response. Note that once a header has been added, it cannot be removed. This method must be called before any output is sent to the client unless the Response.Buffer is set to true.
There are two mandatory arguments.
Name
The
Name
argument is the name of the new header variable. The name cannot contain any underscores ( _ ).
Value
The
Value
argument is the initial value of the new header variable.
Code:
<%
Response.AddHeader
"MyHeader", "ERROR"
%>
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information