<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ProductLookupDemo._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
        .style1
        {
            width: 100%;
            height: 542px;
        }
        .style2
        {
            height: 62px;
        }
        .style3
        {
            width: 195px;
        }
    </style>
</head>
<body>
     <form id="form1" runat="server">
     <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
        <Scripts>
            <asp:ScriptReference Path="~/default.js" />
        </Scripts>
        <Services>
            <asp:ServiceReference Path="~/Product.svc" />
        </Services>
     </asp:ScriptManager>
     <table>
        <tr>
            <td><asp:Label>Product Number (Search Entry): </asp:Label></td>
            <td><asp:TextBox ID="productNumber" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td><asp:Label>Product Description: </asp:Label></td>
            <td><asp:TextBox ID="productDescription" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td><asp:Label>Product Price: </asp:Label></td>
            <td><asp:TextBox ID="ProductPrice" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td colspan="2"><input id="Button1" type="button" value="Wywołaj usługę" onclick="javascript:LookupProduct();" /></td>
        </tr>
        <tr>
            <td colspan="2"><input id="Button2" type="button" value="Wywołaj metodę strony" onclick="javascript:PageMethodLookupProduct();" /></td>
        </tr>
        <tr>
            <td colspan="2"><input id="Button3" type="button" value="Serializuj obiekt ProductDetail" onclick="javascript:SerializeProductDetail();" /></td>
        </tr>
        <tr>
            <td colspan="2"><input id="Button4" type="button" value="Wywołaj usługę z wykorzystaniem klasy Sys.WebRequest" onclick="javascript:CallServiceWithWebRequest();" /></td>
        </tr>
     </table>
    </form>
</body>
</html>

