I think your code does not validate input values properly.
if((txtAmount.Text == "") || (txtPerson.Text == ""))
{
Response.Write("please enter amount");
}
is only for "" or String.Empty. What about " " (one space)?
And what about invalid values (NaN - not a number values)? You should modify this code to validate them and give proper error messages.
txtAmount.Text.Trim() is a good call (for the other text box as well) to cut down spaces.
Also, use TryParse() to validate against NaN and non-double values. It returns false if the validation fails.
Ex :-
double amount;
if (double.TryParse(txtAmount.Text, out amount))