
protected void ButtonNumberEqual_Click(object sender, EventArgs e)
{
try
{
string Input = DisplayTextBox1.Text;
DataTable table = new DataTable();
Object answer;
answer = table.Compute(Input, null);
Answer.Text = answer.ToString();
DisplayTextBox1.Text = DisplayTextBox1.Text + " = " + answer.ToString();
} catch
{
Answer.Text = "ERROR :(";
}
}