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.


var responseHeader = MyExecutor.getResponseHeader();

Return Value

The specified response header.


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


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


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