Blogs

Mehul Harry's DevExpress Blog

Redirect Callback using an ASPxHttpHandler Module

     

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

Published Aug 07 2008, 01:51 PM by Mehul Harry (DevExpress)
Bookmark and Share

Comments

 

Rick said:

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

August 23, 2008 9:07 AM
 

tule mon said:

good tutorial - I was stuck until I found this

Thanks

September 18, 2008 6:50 PM
 

Kevin Jullion said:

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!

October 31, 2008 4:54 PM

About Mehul Harry (DevExpress)

Mehul Harry is an ASP.NET technical evangelist at Developer Express. You can reach him directly at mharry@DevExpress.com. You can also follow him on Twitter: http://twitter.com/mehulharry
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.