Sys.Net.WebRequestExecutor responseAvailable Property

Gets a value indicating whether the request completed successfully.

Note

To get or set property values for client API properties, you must call property accessor methods that are named with the get_ and set_ prefixes. For example, to get or set a value for a property such as cancel, you call the get_cancel or set_cancel methods.

var responseAvailable = MyExecutor.get_responseAvailable();

Return Value

true if the request completed successfully; otherwise, false.

Remarks

Successful completion usually means a well-formed response was received by the executor. If a response was received, the current instance of the Sys.Net.WebRequestExecutor class must set its state to completed. It must also raise the completed event of the associated request object.

Example

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

if(executor.get_responseAvailable()) 

See Also

Reference

Sys.Net.WebRequestManager Class

Sys.Net.WebRequest Class

Sys.Net.XMLHttpExecutor Class