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-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information