asp.net.ph

Response.AddHeader Method

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
);

Parameters

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

Remarks

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

Example


Response.AddHeader ( "CustomHeader", "xxxx" );
  C# VB

See Also

HttpResponse Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph