Solved

Aborting the Save click event

Posted on 2009-07-01
2
209 Views
Last Modified: 2013-12-17
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.

Thanks,
newbieweb
0
Comment
Question by:newbieweb
2 Comments
 
LVL 18

Accepted Solution

by:
Gary Davis earned 500 total points
ID: 24760117
Usually all you have to do is return false from the event to prevent the form from being submitted.
Gary Davis
0
 

Author Comment

by:newbieweb
ID: 24760153
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.

0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question