Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.








Sys.Net.UsingProxyClass Sample


<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="" >
    <head id="Head1" runat="server">
        <title>Using Generated Web Service Proxy Class</title>
        <style type="text/css">
            body {  font: 11pt Trebuchet MS;
                    font-color: #000000;
                    padding-top: 72px;
                    text-align: center }
           .text { font: 10pt Trebuchet MS; text-align: center }
        <h2>Using Generated Web Service Proxy Class</h2>
        <form id="form1" runat="server">

            <asp:ScriptManager runat="server" ID="scriptManager">
                    <asp:ServiceReference Path="UsingProxyClass.asmx" />
                    <asp:ScriptReference Path="UsingProxyClass.js" />
            <table style="font-size:12px;" >
                 <tr align="left">
                    <td class="text">Get Server Object:</td>
                     <button id="Button3"  
                        onclick="GetDefaultColor()">Get Default Color</button>
                 <tr align="left">
                    <td class="text">Pass Server Object:</td>
                     <button id="Button4"  
                        onclick="SetColor()">Set Color</button>
        <hr />
        <!-- Display current color object. -->
        <span id="ResultId"></span>