p; dim i dim k %> <tr align="center" valign="middle"> <td width="25%">ID1</td> <td width="25%">name1</td> <td width="25%">ID2</td> <td width="25%">name2</td> </tr> <%do while not rs.eof and rowcount > 0%> <tr align="center" valign="middle"> <td width="25%"><%=rs("id")%></td> <td width="25%"><%=rs("testname")%></td> <td> <% rowcount=rowcount-1 rs.MoveNext if not rs.EOF then %> <%=rs("id")%> </td> <td width="25%"><%=rs("testname")%></td> </tr> <% rowcount=rowcount-1 rs.MoveNext else Response.Write " </td><td> </td></tr>" end if loop end if end if rs.close set rs=nothing %>