Aborting the Save click event

Inside the Save click event I run tests, and sometimes determine the conditions don't alow a Close to be called. But the dialog seems to close regardless of my Close() function not being reached.

Could someone please tell me what I can do to abort the call to Save inside the Save click event.

newbiewebSr. Software EngineerAsked:
Who is Participating?
Gary DavisConnect With a Mentor Dir Internet SvcsCommented:
Usually all you have to do is return false from the event to prevent the form from being submitted.
Gary Davis
newbiewebSr. Software EngineerAuthor Commented:
Thanks. I found the Infragistics button had a property set where the default value of the button was set to OK. I changed it to "none" and the problem was solved.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.