Esempio n. 1
0
        protected void ftc_Click(object sender, EventArgs e)
        {
            double far = Convert.ToDouble(ftcParamGrad.Text);

            ServiceReference1.WebService1SoapClient mySvc = new
                                                            ServiceReference1.WebService1SoapClient();
            ftcResult.Text = mySvc.FahrenheitToCelsius(far).ToString();
        }
Esempio n. 2
0
        protected void ctf_Click(object sender, EventArgs e)
        {
            double cel = Convert.ToDouble(ctfParamGrad.Text);

            ServiceReference1.WebService1SoapClient mySvc = new
                                                            ServiceReference1.WebService1SoapClient();
            ctfResult.Text = mySvc.CelsiusToFahrenheit(cel).ToString();
        }
Esempio n. 3
0
        protected void add_Click(object sender, EventArgs e)
        {
            int a = Convert.ToInt32(tbA.Text);
            int b = Convert.ToInt32(tbB.Text);

            ServiceReference1.WebService1SoapClient mySvc = new
                                                            ServiceReference1.WebService1SoapClient();
            addLabel.Text = mySvc.Add(a, b).ToString();
        }
Esempio n. 4
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     ServiceReference1.WebService1SoapClient cl = new ServiceReference1.WebService1SoapClient();
     GridView1.DataSource = cl.getCustomers();
     GridView1.DataBind();
 }
Esempio n. 5
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     ServiceReference1.WebService1SoapClient mySvc = new
                                                     ServiceReference1.WebService1SoapClient();
     Label1.Text = mySvc.HelloWorld();
 }