|
The database schemas usually issue record ID by calling the newid() method or by using identity fields in your database.
You can retrieve the ID of a newly created record in the SaveButton_Click() button handler method after the CommitTransaction() method excutes
and use that record ID in your code customization.
The example retrieves the primary key of a record after saving it. It saves in a temporary variable so that you can use
this primary key in your own code customization. For example, you can redirect to another page and pass the saved record's ID field as URL parameter.
This customization will be added in:
..\<Application Name>\App_Code\<Table Name>\Show<Table Name>.Controls.cs
For example: C:\MyApp1\App_Code\Orders\AddOrders.controls.cs
|