URL Parameter Passing

Set URL parameters using ModifyRedirectUrl

Code Customization
Set URL parameters using ModifyRedirectUrl
Description:

You can pass data-bound values like primary keys, foreign keys and field values easily from page to page via URL parameters established with settings in the Databasefield section of the Property Sheet. Sometimes, however, you may need to pass values like non-databound values. One way to pass these values is to modify the ModifyRedirectURL() method. Override this method and provide your URL parameter. For example, you can pass a concatenation of two fields as URL parameter when an button is clicked in record panel or in a record row inside table panel.

Please note that ModifyRedirectURL() method is used by Iron Speed Designer generated buttons like Edit, Copy and View. When you override the ModifyRedirectURL() and do any code customization, they are applicable to URL of these buttons too. So if you do not want to modify the URL of all these buttons and want to modify the URL of one particular button then, you need to override that button's click event handler as explained in the code customization example "Override the Save Button Handler to Modify and Redirect URL Values"

This customization can be applied to any button control in a record panel (or button in repeater row inside table panel), which redirects to some other page. You can also modify the URL at table control class level. For this, you need to override the ModifyRedirectURL() method present in table control class.

This customization will be added in:

..\<Application Name>\<Table Name>\Show<Table Name>Table.aspx.vb

For example: C:\MyApp1\Orders\ShowOrdersTable.aspx.vb

Procedure:

Step 1:  Use this wizard to add code customization.

Step 2:  Build and run the application.

Applies To:

This code customization is applicable only for any Record control or repeater row inside table panel.

Disclaimer:
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