Link to home
Start Free TrialLog in
Avatar of stuayre
stuayre

asked on

repeat region

I've designed my webpage with the following layout:

product 1    Product 2


How can I setup a repeat region so that both products are next to each other? everytime I try I end up with:

Product 1   Product
Product 2   Product
Product 3   Product
Product 4   Product

I need something like:

Product 1   Product 2
Product 3   Product 4
Product 5   Product 6
Product 7   Product 8


is this possible?? :(



Avatar of gabss
gabss

hi,

a fast way i can think of is to do 2 seperate tables with 2 seperate recordsets..

this is a Fast way .....

odd in one Recordset evens in the other....

will be better ways but this would be a quick fix and not to complex...

G





ASKER CERTIFIED SOLUTION
Avatar of Saqib Khan
Saqib Khan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
hay adilkhan

quick fix only as stated.....


I am asumming use of DW dialog boxes and Auto record sets....
Not just ASP only.....

Sorry if this put u off stuayre

leave in hands adilkhan

G
I agree with you gabss, we are dealing with DW, But sometimes we can not do everything and count on Editiors:). I am sure you had that experience as well.
is this what you need

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.odd{
      border-right: 1px solid black;
      padding-right: 6px;
}
.even{
      padding-left: 5px;
}
div{
      border: 1px solid black;
      width: 200px;
      text-align: center;
}
-->
</style>
</head>
<body>
<div>
<span class="odd">Product 1</span>
      <span class="even">Product 2</span><br />
<span class="odd">Product 3</span>
      <span class="even">Product 4</span><br />
<span class="odd">Product 5</span>
      <span class="even">Product 6</span><br />
<span class="odd">Product 7</span>
      <span class="even">Product 8</span>
</div>
</body>
</html>
jAy I believe we are dealing with data Handling here not Client Side, maybe we all got it wrong:)
hmm

Never seen anything about it in the Q.

*shaking head*
   *i am so confused*
Avatar of stuayre

ASKER

thanks adilkhan that worked a treat :)

hi,
try this, suppose that you have a recordset RS from your database;
first you define your looper:
***********************************************
<%
Dim HLooper1__numRows
HLooper1__numRows = -2
Dim HLooper1__index
HLooper1__index = 0
RS_numRows = RS_numRows + HLooper1__numRows
%>
***********************************************
and now you just put your table with the recordset fields:
***********************************************
<table>
  <%
startrw = 0
endrw = HLooper1__index
numberColumns = 2
numrows = -1
while((numrows <> 0) AND (Not RS.EOF))
      startrw = endrw + 1
      endrw = endrw + numberColumns
 %>
  <tr align="center" valign="top">
    <%
While ((startrw <= endrw) AND (Not RS.EOF))
%>
    <td> <%=(RS.Fields.Item("Product").Value)%> </td>
    <%
      startrw = startrw + 1
      RS.MoveNext()
      Wend
      %>
  </tr>
  <%
 numrows=numrows-1
 Wend
 %>
</table>
***********************************************
if you want more simple, try to get the Horizontal Looper Extensions for DW from MM website

hope helpe you,
dan