Well, first off, I don't see an rs.movenext, nor do you break out of <% %>
to call the #include file (<!--#include does not belong inside <% %>
delimiters!). See what happens when you change it to:
<%
do WHILE NOT rs.eof
response.write rs("position")
%>
<!-- #include file="inc_.asp" -->
<%
rs.movenext
loop
%>
Next, why not #include a file once (or not at all), and have a function.
Then not only will you avoid having this #include file referenced 8000
times, you can also make the function respond directly to differences
between rows in your resultset. Much smoother architecture that way...
e.g.
inc_.asp
<%
function writeCharacter( )
response.write "bleh"
end function
%>
Now your loop becomes:
<%
do while not rs.eof
response.write "<br>" & rs("position")
writeCharacter( )
rs.movenext
loop
%>
I don't see the point of repeating an #include directive n times with the
same file, it doesn't seem to make sense to me at all.
--
Please post DDL, sample data and desired results.
See
http://www.aspfaq.com/5006 for info.
".Net Sports" <ba********@cox .net> wrote in message
news:11******** *************@l 41g2000cwc.goog legroups.com...
I want to include some asp if statements inside a do until loop,
predicated on the recordset going until EOF. I do not have any < % %>
delimiters inside the include file. The below doesnt show the character
I want to display:
<% do until rs.eof
response.write rs("position")
<!-- #include file="inc_.asp" -->
loop %>
..while hard coding the character with another response.write statement
will.
Thanks for any insights
.net sports