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
Bindings tab of the Properties dialog. 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.cs
For example: C:\MyApp1\App_Code\Orders\ShowOrdersTable.aspx.cs
|