hello sir while i am doing simple subtraction from two textboxes. i have written code to textchange event of second texbox but it throws an error if first text box is empty like input string is now in correct format.
i ll attach the code please help.
thanks in advance.
if (txtamtrecieved.Text.Trim() != "" || txtamtrecieved.Text != null)
{
txtamtremaining.Text = Convert.ToString(Convert.ToInt16(txtfee.Text) - Convert.ToInt16(txtamtrecieved.Text));
}