Update and Add Data

Check If Record Already Exists Before Saving Data

Code Customization
Check If Record Already Exists Before Saving Data

This customization verifies if a record already exists when inserting a new record. In the SaveData method, the code checks to see if the record exists. If a record already exists the record is not saved, otherwise the MyBase.SaveData method is called to save the record.

For a Web Application the customization will be added in:

..\<Application Name>\<Table Name>\Add<Table Name>.Controls.cs

For example: C:\MyApp1\Customers\AddCustomers.Controls.cs

For a Web Site the customization will be added in:

..\<Application Name>\App_Code\<Table Name>\Add<Table Name>.Controls.cs

For example: C:\MyApp1\App_Code\Customers\AddCustomers.Controls.cs


Step 1:  Use this wizard to add code customization.

Step 2:  Build and run the application.

Applies To:

This customization only applies to Add Record pages and database tables whose primary keys are not autogenerated.

Customizations included in this wizard are provided as a sample to demonstrate a feature, and may work only in specific situations. The Iron Speed Designer support team cannot assist in the resolution of problems which may occur as a result of customizing your application or modifying a customization to fit a particular purpose.

Terms of Service Privacy Statement