RadControls for ASP.NET AJAX Telerik RadAjax supports two kinds of redirection:
- Response.Redirect() - the standard ASP.NET means of redirection.
- generating JavaScript that sets window.location.href.
Caution |
|---|
Currently there is a security issue which prevents Response.Redirect with AJAX from working in Windows Server 2008. IIS 7 simply does not allow to catch the Application events. You should be able to use RadAjaxManager.Redirect method instead. |
Redirecting on the client (JavaScript window.location.href)
RadAjaxManager and RadAjaxPanel also support the Redirect() method, which in essence adds a short javascript to be evaluated after the AJAX request. The javascript code uses the window.location.href property to navigate to a new URL.
CopyC#
RadAjaxManager1.Redirect("http://www.google.com/");
CopyVB.NET
RadAjaxManager1.Redirect("http://www.google.com/")or
CopyC#
RadAjaxPanel1.Redirect("http://www.google.com/");
CopyVB.NET
RadAjaxPanel1.Redirect("http://www.google.com/")
Redirect when session times out.
This scenario is automatically handled by the ASP.NET AJAX framework.
See Also