I have a page that contains many user controls, each of which uses Ajax. When I load this page, under certain conditions, I want to do a response.redirect; however response.
The redirect won't redirect the user but instead it will redirect the XmlHttpRequest instead of the request the user made to get to the page. You can set the location.href in your javascript based on the value returned from the ajax call.