Apply data formats to dynamic content, Customize a data format, Create a data format (asp only) – Adobe Dreamweaver CC 2015 User Manual
Page 599

592
Dynamic sites, pages and web forms
Last updated 6/3/2015
Apply data formats to dynamic content
1
Select the dynamic content placeholder in the Document window.
2
Select Window > Bindings to display the Bindings panel.
3
Click the down arrow button in the Format column.
If the down arrow is not visible, expand the panel.
4
From the Format pop-up menu, select the data format category you want.
Ensure that the data format is appropriate for the type of data you are formatting. For example, the Currency formats
work only if the dynamic data consists of numerical data. Note that you cannot apply more than one format to the
same data.
5
Verify that the format was applied correctly by previewing the page in Live view.
Customize a data format
1
Open a page that contains dynamic data in Design view.
2
Select the dynamic data you want to create a custom format for.
The bound data item whose dynamic text you selected is highlighted in the Bindings panel (Window > Bindings).
The panel displays two columns for the selected item—Binding and Format. If the Format column is not visible,
widen the Bindings panel to reveal it.
3
In the Bindings panel, click the down arrow in the Format column to expand the pop-up menu of available data
formats.
If the down arrow is not visible, widen the Bindings panel more.
4
Select Edit Format List from the pop-up menu.
5
Complete the dialog box, and click OK.
a.Select the format from the list, and click Edit.
b.Change any of the following parameters in the Currency, Number, or Percent dialog boxes, and click OK.
• The number of digits to display after the decimal point
• Whether to place a leading zero in front of fractions
• Whether to use parentheses or a minus sign for negative values
• Whether to group digits
c.To delete a data format, click the format in the list, and click the Minus (-) button.
Create a data format (ASP only)
1
Open a page containing dynamic data in Design view.
2
Select the dynamic data you want to create a custom format for.
3
Select Window > Bindings to display the Bindings panel, and click the down arrow in the Format column. If the
down arrow is not visible, expand the panel.
4
Select Edit Format List from the pop-up menu.
5
Click the Plus (+) button, and select a format type.
6
Define the format, and click OK.
7
Enter a name for the new format in the Name column, and click OK.