Hi all
I'm looping thru an ASP FOR Cycle that populates a table, but when I
output it, the code appears before the HTM tag instead after the body
(very weird to me).
I'm using <script language="vbscript" runat="server"> tag to enclose
the ASP Code. Does it have anything to do?
Here's a code snip:
<table>
<script language="vbscript" runat="server">
for i=0 to 9
for j=0 to 1
fazContas = DateDiff("d", dataAgora, dataColeccao(i,j))
if fazContas <= 0 then
mostraResultadoTexto = livroColeccao(i,j)
mostraResultadoLivro = imgLivro(i,j)
response.Write("<tr>")
response.Write("<td>" & mostraResultadoTexto & "</td>")
response.Write("<td>" & mostraResultadoLivro & "</td>")
response.Write("</tr>")
end if
next
next
</script>
</table>
Thanks in advanced,
Hugo Castanho