SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1210 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


Multiple Repeat Region server behaviors may coexist on the same page, extracting data from either the same
recordset or a different one. However, if you use the same recordset again, you need to reset it so that
Dreamweaver is extracting from the beginning. To do this, locate the second Repeat Region server behavior
in the code by selecting its entry from the Server Behaviors panel and switching to Code view. Above the
first line of server code, add the code appropriate to your server model (substitute the name of your recordset
for rsMine):
ASP <% rsMine.MoveFirst() %>
JSP <% rsMine.first() %>
PHP
ASP.NET and ColdFusion handle this for you. If you start a new , it starts
from the beginning again, and the same holds true for ColdFusion blocks based
on your recordsets.
NOTE NOTE
TIP TIP
693
Managing Data 21
If you do not insert the resetting code, the second Repeat Region picks up where the first one left off. For
example, if 10 records are displayed in the initial Repeat Region, the second Repeat Region starts with the
11th record. If you chose all records for the first Repeat Region, nothing is shown in the second Repeat
Region.
Now that you know how to do this by hand, it??™s time to show you the quick way (I know it??™s cruel, but
everyone has to learn the hard way first).


Pages:
1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222