My Javascript function request to a aspx page.
İts Code:
var xhr = ("XMLHttpRequest" in window) ? new XMLHttpRequest() : new ActiveXObject("Msxml3.XMLHTTP");
xhr.open("GET", = 'http://www.example.net/abc.aspx', true);
xhr.send("");
After this request I want to send a response back from this page and catch it on the client side. How do I do that?
To get the response from
XMLHttpRequestin asynchronous mode (third parameter istruefor theopen()method) you have to set theonreadystatechangeproperty to a callback function. This function will be called back when the response is ready at the browser:You may want to check out the following article for further reading on the topic: