This example illustrates how to pass a newly created record ID value (primary key value) from an Add Record page to another page. In this example, the user is redirected to another page when a “Save” button is clicked on an Add Record page. The newly created record ID is passed as a URL parameter to the redirected page.
Step 1: In Iron Speed Designer, select Tools, Properties... to open the Properties dialog. Then, select the Save button control and set these properties:
|
Tab |
Property |
Setting |
|
|
Control name |
SaveButton |
|
Bindings |
Action |
Save data on page |
|
Bindings |
Redirect |
Go to specific URL |
|
Bindings |
URL |
../Employees/EditEmployees.aspx |
|
Bindings |
URL parameter |
EmployeeID=[Data Value From: EmployeeRecord] |
Step 2: In the Bindings tab, click Add to add the URL parameter.
|
URL Parameter |
Setting |
|
URL parameter name |
EmployeeID |
|
Data Value From |
EmployeeRecord |
|
Parameter Value |
Primary key |
Press OK on the URL Parameter dialog.
Press OK on the Properties dialog.
Step 3: Build and run your application.