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.ExchangeComplexTypes Sample


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

<%@ Import Namespace="System.Web.Script.Serialization" %>

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

<html xmlns="" >
    <head id="Head1" runat="server">
        <title>Exchanging Complex Types</title>
        <style type="text/css">
            body {  font: 11pt Trebuchet MS;
                    font-color: #000000;
                    padding-top: 72px;
                    text-align: center }
            .text { font: 8pt Trebuchet MS }

        <h2>Exchanging Complex Types</h2>
        <form id="form1" runat="server">

            <asp:ScriptManager runat="server" ID="scriptManager">
                    <asp:ServiceReference Path="HandleColor.asmx" />
                    <asp:ScriptReference Path="HandleColor.js" />
            <table style="font-size:12px;" >
                <tr align="center">
                    <td class="text">Change Color:</td>
                        <select id="ColorSelectID"   
                            onchange="OnChangeDefaultColor(this);" runat="server">
        <hr />
        <!-- Display current color object. -->
        <span style="background-color:Yellow">Color:</span>
        <span id="ResultId"></span>