How to stop this method;

MySubmitButton_Click ()method
How to stop this method;