How to use '-' operator in asp.net with c#?

private void button6_Click(object sender, EventArgs e)
    {
      int i1;
      int i2;
      if (int.TryParse(textBox1.Text, out i1) && int.TryParse(textBox2.Text, out i2))
      {
        int sum = i1+i2;
        textBox3.Text = "The sum is " + sum.ToString();
      }
    }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.