Redirect Callback using an ASPxHttpHandler Module

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.

 

image

3 comment(s)
Rick

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

23 August, 2008
tule mon

good tutorial - I was stuck until I found this

Thanks

18 September, 2008
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.