Exemplo n.º 1
0
        protected void btnCalcular_Click(object sender, EventArgs e)
        {
            try
            {
                double      radio      = Convert.ToDouble(txtRadio.Text);
                WebService1 webService = new WebService1();

                txtCircunferencia.Text = webService.Circunferencia(radio).ToString();
                webService             = null;
                return;
            }
            catch (Exception error)
            {
                labelMsg.Text = error.Message;
                return;
            }
        }