New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Force a Postback with the AjaxManager or AjaxPanel


Product Progress® Telerik® UI for ASP.NET AJAX AjaxManager Progress® Telerik® UI for ASP.NET AJAX AjaxPanel


How can I force a postback with the Telerik UI for ASP.NET AjaxManager or AjaxPanel?


To perform a single postback instead of an AJAX request, set arguments.EnableAjax to false.

The following example demonstrates the code-behind.

if (!RadAjaxManager1.EnableAJAX)
         RadAjaxManager1.ClientEvents.OnRequestStart = "OnRequestStart";

 If Not RadAjaxManager1.EnableAJAX Then
        RadAjaxManager1.ClientEvents.OnRequestStart = "OnRequestStart"
End If

The following example demonstrates the settings on the client.

function OnRequestStart(sender, args) {

To disable AJAX because of unsupported browsers or previous browser versions, it is recommended that you do it on the server as demonstrated in the following snippets.

RadAjaxManager1.EnableAJAX = Page.Request.Browser.SupportsXmlHttp;

RadAjaxManager1.EnableAJAX = Page.Request.Browser.SupportsXmlHttp

See Also

In this article