System.Web.HttpResponse.AddHeader Method

Adds an HTTP header to the output stream. HttpResponse.AddHeader(string, string) is provided for compatibility with earlier versions of ASP.

Syntax

public void AddHeader (string name, string value)

Parameters

name
The name of the HTTP header to add value to.
value
The string to add to the header.

Remarks

HttpResponse.AddHeader(string, string) is the same as HttpResponse.AppendHeader(string, string) and is provided only for compatibility with earlier versions of ASP. With ASP.NET, use HttpResponse.AppendHeader(string, string).

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0