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

 

<!DOCTYPE html>

 

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

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

    <title>Calculator Web Service Example</title>

</head>

<body bgcolor="#ccffff">

    <h2>This example demonstrates using a Web Service to perform calculations.</h2>

 

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

                                                                          

    <br />

    <asp:TextBox ID="txtValue1" runat="server" Columns="1" Height="22px"

        style="z-index: 1; top: 77px; position: absolute; left: 115px" Width="61px"></asp:TextBox>

    <br />

   

    <asp:TextBox ID="txtValue2" runat="server" Columns="2" Height="22px"

        style="z-index: 1; left: 228px; top: 77px; position: absolute" TabIndex="1"

        Width="61px"></asp:TextBox>

   

    <br />

   

    <asp:Label ID="Label2" runat="server" Font-Bold="True"

        style="z-index: 1; left: 202px; top: 75px; position: absolute; height: 19px; right: 557px"

        Text="Y:"></asp:Label>

    <br />

   

    <asp:Label ID="lblDisplay" runat="server" Font-Bold="True" ForeColor="Black"

        style="z-index: 1; left: 114px; top: 114px; position: absolute"></asp:Label>

    <br />

   

    <asp:Button ID="btnSubtract" runat="server"

        style="z-index: 1; left: 158px; top: 153px; position: absolute; height: 26px; width: 65px"

        TabIndex="4" Text="Subtract" OnClick="btnSubtract_Click" />

   

    <asp:Button ID="btnMultiply" runat="server"

        style="z-index: 1; left: 238px; top: 153px; position: absolute; height: 26px; width: 65px"

        TabIndex="5" Text="Multiply" OnClick="btnMultiply_Click" />

  

    <asp:Button ID="btnDivide" runat="server"

        style="z-index: 1; left: 319px; top: 154px; position: absolute; height: 26px; width: 65px"

        TabIndex="6" Text="Divide" OnClick="btnDivide_Click" />

    <br />

    <br />

   

    <asp:Button ID="btnAdd" runat="server"

        style="z-index: 1; left: 80px; top: 152px; position: absolute; height: 26px; width: 65px"

        TabIndex="3" Text="Add" OnClick="btnAdd_Click" />

   

    <asp:Label ID="Label1" runat="server" Font-Bold="True"

        style="z-index: 1; left: 86px; top: 75px; position: absolute; height: 19px; right: 672px"

        Text="X:"></asp:Label>

 

    </form>

</body>

</html>