beautypg.com

Make an existing asp.net menu dynamic – Adobe Dreamweaver CS3 User Manual

Page 695

background image

DREAMWEAVER CS3

User Guide

688

DataSet

Specifies the data source you want to use to populate the items of the list control. If you don’t specify a

DataSet, you can specify one later or set the list items statically by clicking the List Items button in the Property
inspector.

Get Labels From

Specifies the field in the selected DataSet to provide the labels of the list items.

Get Values From

Specifies the field in the selected DataSet to provide the values of the list items.

Access Key

Creates a keyboard shortcut that allows users to quickly navigate to the form control in a browser. For

example, if you enter K, the user can navigate to the control by typing Alt+K. The access key can only consist of a
single character.

Auto Postback

Indicates whether a postback to the server automatically occurs when the user changes the list

selection. Select the option to allow postbacks.

For more information on ASP.NET ListBox properties, see the documentation on the Microsoft website at

http://msdn.microsoft.com/library/en-us/cpgenref/html/cpconlistboxwebservercontrol.asp

.

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.

See also

“Defining sources of dynamic content” on page 547

“Create a dynamic ASP.NET menu” on page 687

“Make existing HTML form menus dynamic” on page 609

Display dynamic content in an ASP.NET TextBox control

You can display dynamic content in ASP.NET TextBox form controls when the ASP.NET page is viewed in a browser.

September 4, 2007