I had to repost this again as the subject thread was chabged to
something totally different than my OP. Please provide any feedback on
this problem I'm working on... Thanks:

Thanks in advance... I have a client .asmx that I feel is constructed
correctly (anyone know a way to test without wrinting a client?).
What
this service is designed to do is to take two values from the
client's
textboxes (paper size width and length), multiply those two (on the
server side's .asmx) and have the result displayed as the paper's
area
on a client: e.g 20"x26" = 520"^2. I have a much more complicated
progect in reality as far as the math goes so I rally need to keep
the
calculations on the .asmx side rather than the code behind of
the .aspx client. Thus the server .asmx is:

    <System.Web.Services.WebMethod()> _
Public Function Area(ByVal Weight As Integer, _
      ByVal Length As Integer, ByVal Width As Integer) As Integer
        Return (Area = (Length * Width))
    End Function


Then on the client side's .aspx I have:


    <asp:Button ID="AreaButton" runat="server"
        <asp:TextBox ID="TextBoxPaperSizeA" runat="server"
Width="50px"></asp:TextBox>
        <asp:TextBox ID="TextBoxPaperSizeB" runat="server"
Width="50px"></asp:TextBox>
        <asp:Label ID="lblArea" runat="server" style="font-weight:
700">Area</asp:Label>


With this incomplete code-behind that has me puzzled... any clues?:


    Protected Sub AreaButton_Click(ByVal sender As Object, ByVal e As
System.EventArgs) _
      Handles AreaButton.Click


        Dim wsConvert As New com.Widget.aWebService2


        Dim paperArea As Integer


        Dim                                       ‘??????


        lblArea.Text = "Paper area = " & _


            wsConvert.Area(paperArea).ToString    ‘??????
    End Sub


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---

Reply via email to