Setting Web Services File Paths Using Services Property

Listing 1. The ScriptManager control manages ASP.NET AJAX scripts used in a page and can also be used to generate client-side Web Service proxy classes. This example shows how the ScriptManager control can be used to generate proxy classes for two Web Services.

<asp:ScriptManager ID="sm" runat="server">
    <asp:ServiceReference Path="~/MathService.asmx" />
    <asp:ServiceReference Path="~/CustomerService.asmx" />