Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Vista

Dreamweaver CS5 : Standard Server Behaviors (part 1) - Recordset & Repeat Region

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
7/12/2012 6:00:02 PM
Dreamweaver ships with more than 25 server behaviors, and it offers the option to add many more. The default server behaviors are geared toward handling basic Web application tasks such as repeating an area and inserting records in a data source.

1. Recordset (Query)

To create a simple recordset, follow these steps:

  1. From the Server Behaviors panel, click the Add (+) button and choose Recordset (Query) from the drop-down list. The Recordset dialog box, shown in Figure 1, is displayed.

    Figure 1. You can add recordsets from either the Server Behaviors panel or the Bindings panel through two different dialogs; the Simple Recordset dialog is shown here.
  2. In the Recordset dialog box, enter an identifying label for your recordset in the Name field. It's considered good practice to prefix your recordset name with rs — as in rsDBA. This prefix quickly identifies the recordset in the code.

  3. Select a connection from the drop-down list of that name.

  4. If the desired connection has not been declared, click Define to open the Connections dialog box. After a connection has been selected, the available tables are shown.

  5. Select a table to work with from the Tables drop-down list. The chosen table's fields are displayed in the Columns list.

  6. By default, all the columns are included in the recordset. To specify certain columns, choose the Selected option and select any desired field. Shift+click to select contiguous columns, and Ctrl+click (Command+click) to select noncontiguous columns.

  7. By default, all the records in the selected columns are available. To limit the recordset further, use the four Filter drop-down lists as follows:

    • Choose the field on which you want to base your filter from the first drop-down list. This list changes dynamically according to which table you've selected.

    • From the second drop-down list, select the expression with which to compare the data from the selected column in the first drop-down list. Available expressions are =, >, <, >=, <=, <>, Begins With, Ends With, and Contains.

    • Choose the type of value to compare to the selected field from the third drop-down list. Available types are URL Parameter, Form Variable, Cookie, Session Variable, Application Variable, and Entered Value.

    • In the fourth input field, enter the value to compare to the selected field. Values entered are not case-sensitive.

  8. To sort the data, select a column from the first drop-down list under Sort and choose either Ascending or Descending from the second list.

  9. At any time, you can see what results will be returned for the recordset by clicking Test.

    To see how your simple recordset translates into SQL, click the Advanced button. You can return to the original dialog box by clicking Simple on the advanced Recordset dialog box.


  10. Click OK when you're finished.


2. Repeat Region

The Repeat Region server behavior replicates a selected page area as many times as specified. If the Repeat Region surrounds dynamic data, the record pointer advances for each repetition. A tab and highlight note the boundaries of the Repeat Region when the Invisible Elements option is enabled.

Requirements: One or more selected page elements, such as a table row or a line ending in a line break tag (<br>).

To implement a Repeat Region, follow these steps:

  1. Select the dynamic data and the surrounding code you'd like to repeat.

  2. From the Server Behaviors panel, click the Add (+) button and select Repeat Region from the list.

    The Repeat Region dialog box, shown in Figure 2, appears.

    Figure 2. With the Repeat Region server behavior, you can show some or all of the records in the chosen recordset.
  3. From the Repeat Region dialog box, choose the recordset you want to work with from the Recordset list.

  4. If you want to display a subset of the recordset, enter the number of records you'd like to display in the Show Records field.

  5. If you want every record in the recordset to be displayed, choose the Show All Records option.

  6. Click OK when you're done.

Other -----------------
- CorelDRAW X5 : Text and Styles
- CorelDRAW X5 : Wrapping Text Around Other Shapes
- Adobe Illustrator CS5 : Working with Layers - Flattening Layers & Locating Objects in the Layers Panel
- Adobe Illustrator CS5 : Working with Layers - Moving Objects to a Layer
- Adobe Photoshop CS5 : The Essential Adjustments: White Balance
- Adobe Photoshop CS5 : Miss the JPEG Look? Try Applying a Camera Profile
- Adobe Fireworks CS5 : Working with Adobe AIR (part 4) - Installing the prototype
- Adobe Fireworks CS5 : Working with Adobe AIR (part 3) - Creating an AIR prototype
- Adobe Fireworks CS5 : Working with Adobe AIR (part 2) - Adding AIR events
- Adobe Fireworks CS5 : Working with Adobe AIR (part 1) - Reviewing interaction
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server