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

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true" />
        
        <script type="text/javascript">
            //Put your JavaScript code here.
        </script>
        <script type="text/javascript">
            function requesting(sender, eventArgs) {
                var context = eventArgs.get_context();
                //Data passed to the service.
                context["ClientData"] = "ClientData_Passed_To_The_Service";
            }
        </script>
        <h1>Web Service</h1>
        <telerik:RadAutoCompleteBox runat="server" ID="RadAutoCompleteBox1" OnClientRequesting="requesting">
            <WebServiceSettings Path="LoadEntries.asmx" Method="GetCompanyNames" />
        </telerik:RadAutoCompleteBox>

        <h1>Page Methods</h1>
        <telerik:RadAutoCompleteBox RenderMode="Lightweight" ID="RadAutoCompleteBox3" runat="server" Width="400" DropDownHeight="150"
            EmptyMessage="Select Company Names">
            <WebServiceSettings Method="GetCompanyNames" Path="default.aspx" />
        </telerik:RadAutoCompleteBox>
    </form>
</body>
</html>
