URL Parameter Passing

Use XML Encoded Primary Key Passed via URL

Code Customization
Use XML-Encoded Primary Key Passed via URL

Primary Keys are passed from page to page via URL’s in an XML-encoded format. For example, if you have a Show Table page with an Edit button, and you set that Edit button to redirect to another page and pass a primary key on the URL, Iron Speed Designer will generate a URL such as:


The decoded value of the Categories parameter is:


This means that the primary key of the record is CategoryID and its value is 2. For records with composite primary keys, you would see other attributes in the XML representing the names and values of the other primary key columns.

You can parse and use the XML-encoded value by overriding the CreateWhereClause() method of the record control.

For a Web Application the customization will be added in:

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

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

For a Web Site the customization will be added in:

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

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


Step 1:  Set a button in a Show Table Page to redirect to a target page with URL parameter similar to the one shown above.

Step 2:  Use this wizard to add code customization.

Step 3:  Build and run the application.

Applies To:

This customization only applies to Edit Record and Show Record pages.

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