Adobe 38040334 - Dreamweaver CS3 User Manual page 557

Pc
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Click Test to connect to the database and create an instance of the data source.
9
A table appears displaying the returned data. Each row contains a record and each column represents a field in that
record. Click OK to close the test recordset.
Click OK. The newly defined ColdFusion recordset appears in the Bindings panel.
10
Options for the simple DataSet dialog box (ASP.NET)
Define an ASP.NET DataSet as a source of dynamic content without hand coding SQL statements.
1
In the Name box, enter a name for the DataSet.
A common practice is to add the prefix ds to DataSet names to distinguish them from other object names in your
code, for example:
dsPressReleases
DataSet names can only contain letters, numbers, and the underscore character (_). You cannot use special
characters or spaces.
2
Select a connection from the Connection pop-up menu.
If no connection appears in the list, click Define to create one.
In the Table pop-up menu, select the database table that will provide data to the DataSet.
3
The pop-up menu displays all the tables in the specified database.
To include a subset of the table's columns in the DataSet, click Selected and choose the desired columns by
4
Control-clicking (Windows) or Command-clicking (Macintosh) them in the list.
To include only some of the table's records, complete the Filter section as follows:
5
From the first pop-up menu, select a column in the database table to compare against a test value you define.
From the second pop-up menu, select a conditional expression to compare the selected value in each record
against the test value.
From the third pop-up menu, select Entered Value.
In the box, enter the test value.
If the specified value in a record meets your filtering condition, the record will be included in the DataSet.
6
(Optional) To sort the records, select a column to sort by, and then specify whether the records should be sorted
in ascending order (1, 2, 3... or A, B, C...) or descending order.
You can specify a page to redirect users to if the DataSet query should for some reason fail. For example, if the
7
database were to become unavailable during a query and failed to return the DataSet for the page, you could display
an error page with a link to the site's home page.
Click Test to connect to the database, and create an instance of the data source.
8
A table appears displaying the returned data. Each row contains a record and each column represents a field in that
record. Click OK to close the DataSet.
Click OK. The newly defined DataSet appears in the Bindings panel.
9
Define an advanced recordset by writing SQL
Write your own SQL statements by using the advanced Recordset dialog box, or create a SQL statement by using the
graphical Database Items tree.
.
September 4, 2007
DREAMWEAVER CS3
550
User Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents