Name

AddHeader

Synopsis

Response.AddHeader(ByVal name As String, ByVal value As String)

Adds an HTTP header with the specified name and value to the output stream.

Parameters

name

A String argument containing the name for the header.

value

A String argument containing the value for the header.

Notes

The AddHeader property provides for backward compatibility with classic ASP. This property has been deprecated in favor of the new AppendHeader method.

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.