Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP error 0113 time out error...

Status
Not open for further replies.

phreakgrrrl

Technical User
Jan 30, 2003
26
US
hey all...

so out of nowhere this error came up on one of my pages...

then when we reloaded the page...it started to load correctly but since we're pulling items up from a database what it looks like now is that its incomplete...

to be more specific...

its an artists list page...

it reloaded with only the a's..

ive been searching online and they say that it might be a loop...
???
at first we though it was a timeout error but when we extended the time and reloaded the page it didnt help..

so now i'm lost cause im not sure after looking at the page ...where the error could be...

can anyone shed some light?
 
Is this being pulled from a database? - I would check your database first to make sure it contains more than just the A's which are displayed.

What error did you get on your page, and was it writing to the database at the time?

You will need to post some code, preferable your connection setting up your recordset and the loop to display the items.

BDC.
 
I've done a search on the site and it looks like the db contains all the artists, it must be the loop to display the items. Please post code.

BDC.
 
im not sure where the loop could be....

heres a bit of the code...

thanks for any help...




<td valign=&quot;top&quot; width=&quot;215&quot;>
<% if rsLetter(&quot;letter&quot;)=&quot;A&quot; then %>
<% rsLetter.MoveNext() %>
<p>
<span class=&quot;letter&quot;>A</span><br>
<% rsMenuNames.MoveFirst() %>
<% while NOT rsMenuNames.EOF and rsMenuNames(&quot;letter&quot;)=&quot;A&quot; and rsPre(&quot;letter&quot;)=&quot;A&quot; %>
<% if rsMenuNames(&quot;author&quot;)=rsPre(&quot;author&quot;) then %>
<a href=&quot; Server.urlEncode( rsMenuNames(&quot;author&quot;) ) %>&quot; class=&quot;newed&quot;><%= rsMenuNames(&quot;author&quot;) %></a><br>
<% rsMenuNames.MoveNext %>
<% rsPre.MoveNext %>
<% else %>
<% rsPre.MoveNext %>
<% end if %>
<% wend %>
</p>
<% while rsPre(&quot;letter&quot;)=&quot;A&quot; %>
<% rsPre.MoveNext %>
<% wend %>
<% end if %>

<% if rsLetter(&quot;letter&quot;)=&quot;B&quot; then %>
<% rsLetter.MoveNext() %>
<p>
<span class=&quot;letter&quot;>B</span><br>
<% while NOT rsMenuNames.EOF and rsMenuNames(&quot;letter&quot;)=&quot;B&quot; and rsPre(&quot;letter&quot;)=&quot;B&quot; %>
<% if rsMenuNames(&quot;author&quot;)=rsPre(&quot;author&quot;) then %>
<a href=&quot; Server.urlEncode( rsMenuNames(&quot;author&quot;) ) %>&quot; class=&quot;newed&quot; ><%= rsMenuNames(&quot;author&quot;) %></a><br>
<% rsMenuNames.MoveNext %>
<% rsPre.MoveNext %>
<% else %>
<% rsPre.MoveNext %>
<% end if %>
<% wend %>
</p>
<% while rsPre(&quot;letter&quot;)=&quot;B&quot; %>
<% rsPre.MoveNext %>
<% wend %>
<% end if %>
 
That's going to be one big piece of code!!

A quick fix for this would be to add this line...

<% rsMenuNames.MoveFirst %>

...before this line...

<% while NOT rsMenuNames.EOF and rsMenuNames(&quot;letter&quot;)=&quot;B&quot; and rsPre(&quot;letter&quot;)=&quot;B&quot; %>

You will have to do this for every letter.

If you just want to get it to work, this should do it, but there is a better way of doing this using loops, you may have to to some research.

Let me know if this helps,

BDC.
 
eek sorry, I missed the brackets, the lines of code to add should be:

<% rsMenuNames.MoveFirst() %>

BDC.
 
lol

yeah i guess it was alot to post up...

(((giggle)))

ill try that and let ya know how it goes...



 
doh!

ok..well...the quick fix didnt seem to do it.....

*pout*

 
any ideas?


or can anyone maybe quickly shed some light on what the loops will entail...i um....i dont know a thing about them and if thats whats needed ill need any shove in the right direction...

thanx!!!
 
yes...

A-Z...


and it was up until a few days ago...

*scratches head*
 
Cant really test this properly but try replacing all your A-Z code with just this

<%
for count=65 to 90 %>
<p><span class=&quot;letter&quot;><%=chr(count)%></span><br><%
rsMenuNames.MoveFirst()
while NOT rsMenuNames.EOF and rsMenuNames(&quot;letter&quot;)=chr(count)
if rsMenuNames(&quot;author&quot;)=rsPre(&quot;author&quot;) then %>
<a href=&quot;..blah blah...&quot;></a><br><%
end if
rsMenuNames.MoveNext
wend %>
</p><%
next %>



 
No forget that. What does rsMenuNames and rsPRe contain ?
Trying to follow the logic of your statement

Runs thru rsMenuNames checking at start letter A then B...
If rsMenuNames(&quot;author&quot;)=rsPre(&quot;author&quot;)
or in other words
If Authorname=Authorname
mmm.



 
There are 3 recordsets in there
rsMenuNames, rsPre and rsLetter and I'm not sure what they are all doing!

BDC.
 
Ok unless I'm missing something blatanly obvious here...

' your select statement
sql=&quot;Select author from yourauthortable order by letter&quot;
<%
for count=65 to 90
while NOT rsMenuNames.EOF and rsMenuNames(&quot;letter&quot;)=chr(count) %>
<p><span class=&quot;letter&quot;><%=chr(count)%></span><br>
<a href=&quot; rsMenuNames.MoveNext
wend %>
</p><%
next %>



 
oi!...

having problems here guys...

this isnt my code im dealing with...

and being as said person is not available...i kind of have to make a miracle happen here...


in other words...any further advice would be GREAT!!!

thanks

~:judy:~
 
That code should be
for count=65 to 90
while NOT rsMenuNames.EOF and rsMenuNames(&quot;letter&quot;)=chr(count) %>
<p><span class=&quot;letter&quot;><%=chr(count)%></span><br>
<a href = '><%= rsMenuNames(&quot;author&quot;) %></a><br>
<%
rsMenuNames.MoveNext
wend %>
</p><%
next %>

Your rsMenuNames recordset is pulled from a table that contains all the Artists names and there is also a field called 'letter' which I assume is the first letter of the artists band.
Correct ?
From what I see above all you are doing is listing them alphabetically with an hyperlink assigned to their name
Correct ?

What is your SQL statement?



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top