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.
|