tyt2314 says:
if (DeleteList[i].Type == loanType && Convert.ToInt32(DeleteList[i].loanterm) == loanTerm && Convert.ToDouble(DeleteList[i].loanrate) == loanRate)
{
Response.Write("alert('You cannot delete!')");
ret = "null";
}
Replace above code with below
if (DeleteList[i].Type == loanType && Convert.ToInt32(DeleteList[i].loanterm) == loanTerm && Convert.ToDouble(DeleteList[i].loanrate) == loanRate)
{
Response.Write("alert('You cannot delete!')");
ret = "null";
break;
}
Hope this works for you