Hi there.
I would like to use some sort of repeat region, but horizontally.
At the moment am using a MX extension which does the job, but it creates a table inside the div tags, which makes very dificult to control (layout).
ex. bellow:
<%
Dim rsMain
Dim rsMain_numRows
Set rsMain = Server.CreateObject("ADODB.Recordset")
rsMain.ActiveConnection = MM_interconn_STRING
rsMain.Source = "SELECT MainID, MainName, MainDescription, MainStatus FROM dbo.MainCategory WHERE MainStatus = 0 ORDER BY MainName"
rsMain.CursorType = 0
rsMain.CursorLocation = 2
rsMain.LockType = 1
rsMain.Open()
rsMain_numRows = 0
%>
<%
Dim HLooper1__numRows
HLooper1__numRows = -2
Dim HLooper1__index
HLooper1__index = 0
rsMain_numRows = rsMain_numRows + HLooper1__numRows
%>
<div id="left">
</div>
<div id="right">
</div>
<div id="main">
<div class="feature">
<table width="600px">
<%
Dim startrw, endrw, numberColumns, numrows
startrw = 0
endrw = HLooper1__index
numberColumns = 2
numrows = -1
while((numrows <> 0) AND (Not rsMain.EOF))
startrw = endrw + 1
endrw = endrw + numberColumns
%> <tr align="left" valign="top">
<%
While ((startrw <= endrw) AND (Not rsMain.EOF))
%>
<td width="50%"><a href="#<%=rsMain("MainID")%>"> <%=(rsMain.Fields.Item("MainName").Value) & " " & chr(187)%> </a> </td>
<%
startrw = startrw + 1
rsMain.MoveNext()
Wend
%>
</tr>
<%
numrows=numrows-1
Wend
%>
</table>
</div>
</div>
</td>
</tr>
</table>
I would like to try getting the same results using div tags instead of table,td and tr .
|