Redirect Callback using an ASPxHttpHandler Module

ASP.NET Team Blog
07 August 2008

Check out this three minute video on how to redirect from within an Ajax callback. Normally, to redirect, you would call the HttpResponse.Redirect method and pass the URL you want to redirect the current page to. But the Redirect method doesn’t work in a callback.

Here’s where the ASPxHttpHandler Module, with its multiple uses, comes to the rescue. With the ASPxHttpHandler Module, you can just check the IsCallback method, then set the HttpResponse.RedirectLocation property and you’ve got a seamless redirection. Click the image below to learn more. Then drop me a line here and let me know what other approaches you could use to get this redirection.



Free DevExpress Products – Get Your Copy Today

The following free DevExpress product offers remain available. Should you have any questions about the free offers below, please submit a ticket via the DevExpress Support Center at your convenience. We’ll be happy to follow-up.

Thanks for this tutorial. I had been wondering how to do that until i read this.

23 August 2008
tule mon
tule mon

good tutorial - I was stuck until I found this


18 September 2008
Kevin Jullion
Kevin Jullion

awesome stuff, was just what I was looking for just now and the example was clear and concise enough to make it very easy to implement...thanks guys!

31 October 2008

Please login or register to post comments.