Share via


To add controls to the Web form

This procedure works only with a project that has been created from Project Setup. Project Setup contains specific namespace references and code configuration that is required for this procedure, and you will be unable to complete the procedure without that configuration. Therefore, before you begin this procedure, you must first follow the steps in Project Setup.

In this section, you add the DropDownList control and Button control to the web form.

  1. Open the Web form.

  2. From the View menu, click Designer.

  3. From the Toolbox, drag a DropDownList control above the CrystalReportViewer control.

> [!NOTE]
> <P>If a Smart Task appears on the DropDownList press Esc to close it.</P>
  1. Click on the DropDownList control to select it.

  2. From the Properties window, set the ID to reportsList.

  3. From the Toolbox, drag a Button control to the right of the DropDownList control.

  4. Click the Button control to select it.

  5. From the Properties window:

1.  Set the ID to display
2.  Set the Text to Display Report
  1. From the File menu, click Save All.

In the next step, you write code to automatically populate the DropDownList control.