<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default8.aspx.cs" Inherits="Default8" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div>
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
                <ClientEvents OnResponseEnd="ResponseEnd" />
            </telerik:RadAjaxManager>
            <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
            function SendAJAX(args) {  
                var ajaxMgr = $find("<%=RadAjaxManager1.ClientID %>");  
                ajaxMgr.ajaxRequest(args); 
            }  
              
            function ResponseEnd(sender, args) {  
                alert(args.EventArgument);  
            }  
            </script>
            </telerik:RadCodeBlock>
            <input id="Button1" type="button" value="button" onclick="SendAJAX('first$argument')" />
        </div>
    </form>
</body>
</html>
