Exemplo n.º 1
0
    protected void btnAdd_Click(object sender, EventArgs e)
    {
        string a = txtOperand1.Text;
        string b = txtOperand2.Text;

        txtResult.Text   = c.Add(a, b);
        txtOperand1.Text = "";
        txtOperand2.Text = "";
    }
Exemplo n.º 2
0
 protected void Button2_Click(object sender, EventArgs e)
 {
     ServiceReference1.WebServiceSoapClient client = new ServiceReference1.WebServiceSoapClient();
     Label2.Text = (client.Add(Convert.ToInt32(TextBox2.Text), Convert.ToInt32(TextBox3.Text))).ToString();
 }