RadControls for ASP.NET AJAX If you want to perform a single postback instead of AJAX request, arguments.EnableAjax should be false:
In the code-behind:
CopyC#
if (!RadAjaxManager1.EnableAJAX)
{
RadAjaxManager1.ClientEvents.OnRequestStart = "OnRequestStart";
}
CopyVB
If Not RadAjaxManager1.EnableAJAX Then
RadAjaxManager1.ClientEvents.OnRequestStart = "OnRequestStart"
End IfOn the client:
CopyJavaScript
function OnRequestStart(sender, args) {
args.set_enableAjax(false);
}
This approach is useful only when you want to perform a single postback. If you want to disable ajax because of unsupported browsers or old versions of supported ones we suggest you to do this on the server:
CopyC#
RadAjaxManager1.EnableAJAX = Page.Request.Browser.SupportsXmlHttp;
CopyVB
RadAjaxManager1.EnableAJAX = Page.Request.Browser.SupportsXmlHttp