Esempio n. 1
0
        protected void btnMultiply_Click(object sender, EventArgs e)
        {
            CalculatorService.CalculatorWebServiceSoapClient client =
                new CalculatorService.CalculatorWebServiceSoapClient();
            int result = client.Multiply(Convert.ToInt32(txtFirstNumber.Text),
                                         Convert.ToInt32(txtSecondNumber.Text));

            lblResult.Text = result.ToString();

            gvCalculations.DataSource = client.GetCalculations();
            gvCalculations.DataBind();

            gvCalculations.HeaderRow.Cells[0].Text = "Recent Calculations";
        }