<%@ Page Language="VB" AutoEventWireup="false" CodeFile="WSCallback.aspx.vb" Inherits="WSCallback" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Funkcja zwrotna i Web Service</title>
    
    <script type="text/javascript">
        function GetTemp(){     
            var zipcode = document.forms[0].TextBox1.value;   
            UseCallback(zipcode, "");
        }
        
        function GetTempFromServer(TextBox2, context){   
            document.forms[0].TextBox2.value = "Kod ZIP: " + 
            document.forms[0].TextBox1.value + " | Temp: " + TextBox2;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:TextBox ID="TextBox1" Runat="server"></asp:TextBox>
        <br />
        <input id="Button1" type="button" value="Pobierz temperaturę" onclick="GetTemp()" />
        <br />
        <asp:TextBox ID="TextBox2" Runat="server" Width="400px">
        </asp:TextBox>
        <br />
        <br />    
    </div>
    </form>
</body>
</html>

