System.Web Namespace HttpResponse Class
Adds an HTTP header to the output stream.
AddHeader is provided for compatibility with previous versions of ASP.
[ VB ]
Public Sub AddHeader ( _
ByVal name As String, _
ByVal value As String _
)
[ C# ]
public void AddHeader (
string name,
string value
);
[ C++ ]
public: void AddHeader (
String* name,
String* value
);
[ JScript ]
public function AddHeader (
name : String,
value : String
);
- name
- The name of the HTTP header to add value to.
- value
- The string to add to the header.
AddHeader is the same as AppendHeader and is provided only for compatibility with previous versions of ASP. With ASP.NET, use AppendHeader.
Response.AddHeader ( "CustomHeader", "xxxx" );
Response.AddHeader ( "CustomHeader", "xxxx" ) |
|
C# |
VB |
HttpResponse Members