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


The AjaxRequest event occurs when triggered by the client-side ajaxRequest() function or the server-side RaisePostBackEvent()` method.

The event cannot be cancelled. The AjaxRequest event handler receives a single string argument.

The example below demonstrates an AjaxRequest triggered from both the client and server. An a HTML input button and a standard ASP.NET button are also defined. The HTML input button triggers a function that calls the client-side ajaxRequest(). The ASP.NET button triggers a server-side OnClick event that in turn calls the RaisePostBackEvent() method.

<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        function clientClick() {
            var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
    <asp:Button ID="btnServer" runat="server" Text="Make server AjaxRequest" OnClick="btnServer_Click" />
    <input id="btnClient" type="button" value="Make client AjaxRequest" onclick="clientClick();" />
protected void btnServer_Click(object sender, EventArgs e)

protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
    RadAjaxManager1.Alert("AjaxRequest raised from the " + e.Argument);
Protected Sub btnServer_Click(ByVal sender As Object, ByVal e As EventArgs)
End Sub

Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs)
     RadAjaxManager1.Alert("AjaxRequest raised from the " + e.Argument)
End Sub
In this article