I apologize if this has already been answered (I'm sure it has somewhere). I'm looking for a way to dynamically populate a set of columns from a database while keeping them even (or close). I'm using asp classic with SQL Server 2008 to get the data.
The example below is for 2 columns just to try to keep it simple. I was thinking of finding a way to check the number of data entries I'm selecting and dividing by 2 to evenly populate the columns. And if the number of entries was something like 13 then the first column would have 7 and the second 6. I'm fairly new to asp and javascript so nothing is really jumping out at me. Any help or guidance in the right direction would be greatly appreciated. Thank you.
<html >
<head>
<style type="text/css">
ul#list { list-style-type: none; }
</style>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" width="100%" >
<tr>
<div>
<td>
<div style="float: left; width:30%;">
<ul id="list">
<li>Left Item 1</li>
<li>Left Item 2</li>
<li>Left Item 3</li>
<li>Left Item 4</li>
<li>Left Item 5</li>
</ul>
</div>
<div style="float: left; width:30%;">
<ul id="list" >
<li>Middle Item 1</li>
<li>Middle Item 2</li>
<li>Middle Item 3</li>
<li>Middle Item 4</li>
<li>Middle Item 5</li>
</ul>
</div>
</td>
</tr>
</table>
</body>
</html>