Create Reusable Panels

Updated June 5, 2006
Iron Speed Designer V3.2 and V4.0

Iron Speed Designer allows you to create reusable ASCX controls very easily.  In fact, the Header, Footer, Menu and Pagination controls are reusable ASCX controls that are created once and reused on all generated pages.

You may way to review the Online Help about reusable panels.  Simply search for “reusable” in Online Help to see the topics listed.

Here is some quick help on how to create reusable panels:

To create a reusable panel:

- Create a new page from the File menu or if you are using an existing layout, place this file in a subfolder of your application such as \MyApp\MyASPXControls.  Make sure the file has a .H extension.

- Go back to Iron Speed Designer and select View, Refresh to display this new file in the Application Explorer.

- Select the newly added file in the Application Explorer and select Tools, Page Properties.

- Press Show Tree at the bottom of the Page Properties dialog, and select the top most node in the tree displayed on the left.  This node will be called something like MyControl.html.

- Click on the Bindings tab on the right and select Custom ASCX Control.

- Press OK to save.

- Add any additional controls to this page and configure them appropriately.

To use a reusable panel:

To use this panel on another page, go to the Design tab of the page and drag and drop “Include Component” from the Toolbox Controls panel. This will insert an Include component.

- Double-click on the Include component to display the Page Properties dialog.

- IMPORTANT: Click the Browse button and specify the HTML file containing the reusable component.  Ensure that the file is correctly specified as ..\MyApp\MyASPXControls\MyControl.html. 

- IMPORTANT:  Press OK to save and Rebuild All.  Note that if you do not browse and save the bindings, and no code will be generated for this control.  As such, these two steps are very important.

- Your ASPX page should now be displayed as part of the Master Page with the same look and feel as the rest of your application.

See Also

Part V: Customizing Generated Application Code