Creating a dynamic ASP.NET menu
You can dynamically populate an ASP.NET menu control such as DropDownList or ListBox with
entries from a database.
Before you begin, you must define a DataSet or other source of dynamic content for the menu.
For more information, see
To insert a dynamic menu in an ASP.NET page:
Open the ASP.NET page and position the insertion point where you want the menu to appear.
1
Select Insert > ASP.NET Objects; then select asp:DropDownList or asp:ListBox.
2
The form control's dialog box appears.
Complete the dialog box and click OK.
3
For more information, click the Help button on the dialog box.
Dreamweaver inserts the form control at the insertion point in your page. If you didn't insert a
form, Dreamweaver inserts one that includes a
Related topics
•
"Setting the properties of ASP.NET form controls" on page 623
•
"Making an existing ASP.NET menu dynamic" on page 624
Making 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.
Before you begin, you must define a DataSet or other source of dynamic content for the menu.
For more information, see
To make an existing DropDownList or ListBox object dynamic:
In Design view, select the DropDownList or ListBox object you want to make dynamic.
1
In the Property inspector, click the List Items button.
2
The List Items dialog box appears.
Select the From Database option and complete the dialog box.
3
For more information, click the Help button on the dialog box.
Related topics
•
"Creating a dynamic ASP.NET menu" on page 624
•
"Making existing HTML form menus dynamic" on page 618
624
Chapter 39: Creating Forms
"Defining a recordset" on page
runat="server"
"Defining a recordset" on page
530.
attribute.
530.
Need help?
Do you have a question about the DREAMWEAVER MX 2004-USING DREAMWEAVER and is the answer not in the manual?
Questions and answers