Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HttpResponse.AddHeader Method

Adds an HTTP header to the output stream. AddHeader is provided for compatibility with earlier versions of ASP.

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)

public void AddHeader(
	string name,
	string value
)

Parameters

name
Type: System.String

The name of the HTTP header to add value to.

value
Type: System.String

The string to add to the header.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft