I have been trying to put thousands points in the heritage textbox for hours, which comes from a subtraction between less passive assets, but when it is subtracted when it is subtracted and it stops calculating, why does this happen?
protected void txtActivos_TextChanged(object sender, EventArgs e)
{
double calc1 = 0;
double calc2 = 0;
if (!String.IsNullOrEmpty(txtActivos.Text) ||
!String.IsNullOrEmpty(txtPasivos.Text))
{
calc1 = Convert.ToDouble(txtActivos.Text);
calc2 = Convert.ToDouble(txtPasivos.Text);
var calcTotal = Convert.ToString(calc1 - calc2);
txtPatrimonio.Text = String.Format("{0:C2}", calcTotal);
}
}