Move To Random Record-ASP Support

This extension will move to a random record in the recordset selected.

Overview

Move To Random Record

The move to random record server behavior will move any dreamweaver recordset to a random record within that recordset. This could be used, for example when you want to show random news on your homepage.

After the insertion point of the server behavior the recordset selected will be at a random record, so you may drag and drop fields as required, though it is still recommended that you check for an empty recordset before displaying any data from it.

When you apply the server behavior by clicking the + (plus) in the 'Server Behaviors' Panel and going to 'Recordset Paging -> Move To Random Record' you will be presented with something similar to

You should then select the recordset you want to go to a random record in. The server behavior will be represented in the design view by:

'SomeRS' will be replaced by the recordset you are affecting.

To remove the server behavior from your page you can either select the representation (shown above) and press delete or select the behavior in the 'Server Behaviors' panel and click on the - (minus) button.

NOTE: This extension currently only works in ASP

 

Access

Server Behaviors -> Recordset Paging -> Move To Random Record

Requirements

Type: Server Behavior
Product: Dreamweaver MX
Server Model: ASP JavaScript, ASP VBScript

Reviews

display x number of random records

July 9, 2004 by Phil Bishop
Is it possible to modify the code this extension produces to display (x) number of records in a table?

Very Good Extension indeed!

November 1, 2005 by Dave
i have tested this extension on one of my big projects and i have to say i was so surprised by the way that the extension simplify the headache of dealing with scripts.
Again Well Done and thanks for your hard work.

You must me logged in to write a review.