<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="CustomSerializerWCFService.aspx.cs" Inherits="AjaxWebServicesDemo.CustomSerializerWCFService" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
        .style1
        {
            width: 108%;
        }
        .style2
        {
            width: 102px;
        }
        #Text2
        {
            width: 318px;
        }
        #Text3
        {
            width: 314px;
        }
        #Text4
        {
            width: 578px;
        }
        #Text5
        {
            width: 380px;
        }
        #address
    {
        width: 291px;
    }
    #lastName
    {
        width: 210px;
    }
    #firstName
    {
        width: 208px;
    }
    #addedCustomersTable
    {
        width: 1002px;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
    <Scripts>
        <asp:ScriptReference Path="~/CustomSerializerWCFService.js"/>
    </Scripts>
    <Services>
        <asp:ServiceReference Path="~/CustomSerializerService.svc" />
    </Services>
  </asp:ScriptManagerProxy>    
    <h1>Przykład niestandardowego mechanizmu serializacji</h1>
     <div>
        <table class="style1">
            <tr>
                <td class="style2">Identyfikator</td>
                <td><span id="businessEntityId"></span></td>
            </tr>
            <tr>
                <td class="style2">Adres</td>
                <td><input id="businessEntityAddress" type="text" /></td>
            </tr>
            <tr>
                <td class="style2">Miasto</td>
                <td><input id="businessEntityCity" type="text" /></td>
            </tr>
            <tr>
                <td class="style2">Województwo</td>
                <td><input id="businessEntityState" type="text" /></td>
            </tr>
            <tr>
                <td class="style2">Kod</td>
                <td><input id="businessEntityZip" type="text" /></td>
            </tr>
            <tr>
                <td class="style2">&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td class="style2" colspan="2" align="left">
                    <div style="width: 674%;height: 28px">
                        <input id="Button2" style="margin-right: 10px;margin-left: 10px" type="button" value="Zapisz" onclick="javascript:Save();" />
                        <input id="Button1" style="margin-right: 10px;margin-left: 10px" type="button" value="Wyczyść" onclick="javascript:Clear();" />
                    </div>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
