Beispiel #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            ServiceReference1.CalculatorWebServiceSoapClient client1 = new ServiceReference1.CalculatorWebServiceSoapClient();
            int result = client1.Add(Convert.ToInt32(TextBox1.Text), Convert.ToInt32(TextBox2.Text));

            TextBox3.Text = result.ToString();
        }
Beispiel #2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            ServiceReference1.CalculatorWebServiceSoapClient client1 = new ServiceReference1.CalculatorWebServiceSoapClient();
            int result = client1.Add(Convert.ToInt32(TextBox1.Text), Convert.ToInt32(TextBox2.Text));

            TextBox3.Text = result.ToString();

            gvcal.DataSource = client1.Getcal();
            gvcal.DataBind();
            gvcal.HeaderRow.Cells[0].Text = "Recent calculation";
        }