Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

Sys.Net.WebRequestExecutor.getResponseHeader Method

Gets the value of the specified response header.

Syntax

var responseHeader = MyExecutor.getResponseHeader();

Return Value

The specified response header.

Remarks

If a request finished successfully and with valid response data, this method returns the value of the specified response header.

Example

The following example shows how to use the getResponseHeader method by using the default Sys.Net.XMLHttpExecutor class.

JavaScript

// Get a specific header.
resultElementId.innerHTML += 
"Content-Type Header: " +
    executor.getResponseHeader("Content-Type") + 
    "<br/>";