What's the difference between "to do" and "doing"?
Here are two examples below:
Having lost all his money, Mark had no choice but to ask the police for help. Why using "to ask", not "asking"
They postponed giving a definite answer. Why "giving", not "to give".