A newer version of this page is available. Switch to the current version.

ASPxWebControl.RedirectOnCallback(String) Method

Redirects a client to a new URL while processing a callback.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll


public static void RedirectOnCallback(
    string url
Public Shared Sub RedirectOnCallback(
    url As String


Name Type Description
url String

A string value specifying the new target location.


While a callback is being processed on the server, the RedirectOnCallback method enables you to redirect the application to another web resource.


This example demonstrates how to use the ASPxWebControl.RedirectOnCallback method to redirect a user on an AJAX request, for example, ASPxCallbackPanel control callback. With this method, you can implement user login with asynchronous behavior (Login Control will reload the page even if the validation fails or redirect the user on successful validation, but in this example, the login process is done asynchronously).