AddHeader

The AddHeader method adds a new MIME header and value to the rendered content. It does not replace an existing header of the same name. Once a header has been added, it cannot be removed.

Syntax

Response.AddHeader name, value

Parameters
name
A string that indicates the name of the new header.
value
A string that indicates the initial value of the new header.
Example

You can use AddHeader to embed some internal data that may be needed at a later time (mail forwarding, etc.)

<% Response.Addheader "X-Invoice-ID", "12345678" %>
Applies To

Response Object



©2001-2015 eMill. All trademarks property of their owners.