<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CustomerSvcExample.aspx.cs" Inherits="WebServices.CustomerSvcExample" %>

 

<!DOCTYPE html>

 

<html xmlns="http://www.w3.org/1999/xhtml">

<head id="Head1" runat="server">

    <title>CustomerService Web Service Example</title>

    <style type="text/css">

        .auto-style1

        {

            width: 59px;

        }

    </style>

</head>

<body bgcolor="#99ffcc">

    <h3>This example demonstrates the use of a Web Service for processing. <br />

        This example shows how to pass user-defined types (UDT) between the client and web service. <br />

        It also shows how to pass an ArrayList to the client.</h3>

 

    <form id="form1" runat="server">

        <div>

            <asp:Button ID="btnDisplayCustomers" runat="server" Text="Display Customers"

                style="z-index: 1; left: 270px; top: 125px; position: absolute; height: 26px; width: 190px;" OnClick="btnDisplayCustomers_Click" />

 

            <asp:Label ID="lblDisplay" runat="server" Font-Bold="True"></asp:Label>

            <br />

            <asp:Button ID="btnAddCustomer" runat="server" Text="Add New Customer"

                style="z-index: 1; left: 268px; top: 156px; position: absolute; height: 26px; width: 190px;" OnClick="btnAddCustomer_Click" /> <br />

 

            <asp:Button ID="btnFindCustomer" runat="server" Text="Find Customer By Name"

                style="z-index: 1; left: 270px; top: 197px; position: absolute; width: 190px; height: 26px;" OnClick="btnFindCustomer_Click" /> <br />

 

            <asp:Button ID="btnFindCustomers" runat="server" Text="Find All Customers By Name"

                style="z-index: 1; left: 270px; top: 228px; position: absolute; height: 26px; width: 190px;" OnClick="btnFindCustomers_Click" /> <br /><br />

 

        </div>

 

        <div style="z-index: -1; left: 10px; top: 122px; position: absolute; height: 132px; width: 836px">

        <table>

            <tr>

                <td class="auto-style1">Name:</td>

                <td><asp:TextBox ID="txtName" runat="server"></asp:TextBox></td>

            </tr>

            <tr>

                <td class="auto-style1">Address: </td>

                <td><asp:TextBox ID="txtAddress" runat="server"></asp:TextBox></td>

            </tr>

            <tr>

                <td class="auto-style1">City:</td>

                <td><asp:TextBox ID="txtCity" runat="server"></asp:TextBox></td>

            </tr>

            <tr>

                <td class="auto-style1">State:</td>

                <td><asp:TextBox ID="txtState" runat="server"></asp:TextBox></td>

            </tr>

            <tr>

                <td class="auto-style1">Zip:</td>

                <td><asp:TextBox ID="txtZip" runat="server"></asp:TextBox></td>

            </tr>

            <tr>

                <td class="auto-style1">Email:</td>

                <td><asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></td>

            </tr>

        </table>

        </div>

 

       <asp:gridview ID="gvCustomers" runat="server"

            style="z-index: 1; left: 13px; top: 297px; position: absolute;

            height: 133px; width: 187px">

       </asp:gridview>

 

    </form>

</body>

</html>