AJAX Page - Using Redirect

The usual methods Response.Redirect(pageUrl) and Server.Transfer(pageUrl)  
don't work in case of a callback to the server.
The Redirect method acts exactly as the usual Response.Redirect method,
the difference is that this one can be called during a server callback.

Here is a simple example.
Make a callback to the server.
On server-side redirect to http://www.obout.com.



Client-side
			
        ob_post.post(null, "ServerRedirect");
			


Server-side
			
        public void ServerRedirect()
        {
            Redirect("http://www.obout.com");
			
            // equivalent with 
            // Redirect("http://www.obout.com", false);
        }
			

Second parameter is similar with Response.Redirect method second parameter.


See also Redirect method documentation.

"Obout Team, I am the Development Manager for the inkubook tem at Author Solutions. I wanted to personally take the time to thank the Obout team for the absolute top notch support we have been provided. Your support has exceeded anything we have received from your competitors. When given a choice of tools, I will have no hesitation in selecting the Obout tool over any tool provided by a competitor. "

Jim Daugherty
Development Manager, inkubook

Random testimonial   All testimonials