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(); }
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(); }
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(); }
protected void Button1_Click(object sender, EventArgs e) { ServiceReference1.WebService1SoapClient cl = new ServiceReference1.WebService1SoapClient(); GridView1.DataSource = cl.getCustomers(); GridView1.DataBind(); }
protected void Button1_Click(object sender, EventArgs e) { ServiceReference1.WebService1SoapClient mySvc = new ServiceReference1.WebService1SoapClient(); Label1.Text = mySvc.HelloWorld(); }