Skip to main content
Inspiring
December 22, 2008
Question

repeat region ASP not displayed correctly

  • December 22, 2008
  • 1 reply
  • 277 views
Hi,

I use a ASP repeat region within a table (second row).
My browser (also within Dreamweaver) will show the repeating part always horizontally. It should make nice columns.
Probably a simple mistace, but I can't find it....

Please help.
This topic has been closed for replies.

1 reply

Inspiring
December 22, 2008
You are seeing the horizontal display because your repeat is only within a
row.

Change this -

<tr>
<%
While ((Repeat1__numRows <> 0) AND (NOT rsTest.EOF))
%>

to this -

<%
While ((Repeat1__numRows <> 0) AND (NOT rsTest.EOF))
%>
<tr>

and this -

<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rsTest.MoveNext()
Wend
%>
</tr>

to this -

</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rsTest.MoveNext()
Wend
%>


--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"PaulTest" <webforumsuser@macromedia.com> wrote in message
news:gio5h8$jhl$1@forums.macromedia.com...
> Hi,
>
> I use a ASP repeat region within a table (second row).
> My browser (also within Dreamweaver) will show the repeating part always
> horizontally. It should make nice columns.
> Probably a simple mistace, but I can't find it....
>
> Please help.
>
> <table width="100%" border="0" cellspacing="0" cellpadding="0">
> <tr>
> <td width="400" height="66" align="left" valign="bottom"
> bgcolor="#EEEEEE"><h1>Prospects</h1></td>
> <td> </td>
> <td width="17%"> </td>
> </tr>
> <tr>
> <td height="18" colspan="2" align="left" valign="bottom"
> bgcolor="#FFFFFF"
> class="thrColLiqHdr"><br> <table width="600" border="0" cellspacing="0"
> cellpadding="0">
> <tr>
> <th align="left" bgcolor="#CCCCCC">SAP</th>
> <th align="left" bgcolor="#CCCCCC">Company</th>
> <th align="left" bgcolor="#CCCCCC">Place</th>
> <th align="left" bgcolor="#CCCCCC">Telephone</th>
> <th align="left" bgcolor="#CCCCCC">Contactname</th>
> </tr>
> <tr>
> <%
> While ((Repeat1__numRows <> 0) AND (NOT rsTest.EOF))
> %>
> <td><%=(rsTest.Fields.Item("SAP").Value)%></td>
> <td><%=(rsTest.Fields.Item("ClientName").Value)%></td>
> <td><%=(rsTest.Fields.Item("ClientPlace").Value)%></td>
> <td><%=(rsTest.Fields.Item("ClientTel").Value)%></td>
> <td><%=(rsTest.Fields.Item("ContactName").Value)%></td>
> <%
> Repeat1__index=Repeat1__index+1
> Repeat1__numRows=Repeat1__numRows-1
> rsTest.MoveNext()
> Wend
> %>
> </tr>
> </table></td>
> <td> </td>
> </tr>
> </table>
>