Dreamweaver

Make an existing ASP.NET menu dynamic

You can make an existing ASP.NET menu object dynamic. ASP.NET menu objects include the DropDownList and ListBox controls.

  1. In Design view, select the DropDownList or ListBox object that you want to make dynamic.
  2. In the Property inspector, click the List Items button.
  3. Select Manually or From Database, depending on how you plan to populate the list.
  4. If you select Manually, do the following:
    • To add a list item, click the Plus (+) button, and specify a label and value in the Label and Value boxes.

    • To delete a list item, select the item in the list and click the Minus (-) button.

    • To edit a list item, select the list item, and then specify a new label or value in the Label and Value boxes.

    • To specify a default item when the list is displayed the first time, enter the value of the item in the Select Value Equal To box.

  5. If you select From Database, do the following:
    • Select the DataSet that will populate the list.

    • Specify the column in the DataSet that will provide the labels of the list items.

    • Specify the column in the DataSet that will provide the values of the list items.

    • To specify a default item when the list is displayed the first time, enter the value of the item in the Select Value Equal To box.