I have a HttpHandler which is called from JavaScript using the XmlHttpRequest object. I want the HttpHandler to redirect the client if some condition is not met.
I've tried playing with context.Response.Redirect(@"http://www.stackoverflow.com"), but this just send the web page contents in the http requests response to the client.
Is there any way to redirect the client from within the HttpHandler itself? Or does this have to occur once the client receives the XmlHttpRequest response?
Thanks