Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
ASP loops running slow on new server...
Old 07-19-2004, 08:10 PM ASP loops running slow on new server...
Junior Talker

Posts: 2
Trades: 0
I have the same script on two servers...

Win 2003 - http://www.specialopspaintball.com/brigade/signup.asp
Win 2000 - http://bridgewebdesign.com/brigade/signup.asp

Notice how slow the first one loads and reloads after clicking submit!

The code that the Win 2003 server is hanging on is a For loop:

Code:
 
<select name="Year" id="Year">
<option value=""></option>
<%
Dim thisYear, i
thisYear = DatePart("yyyy",Date())
For i = (thisYear-84) to (thisYear-6)
     Response.Write "<option value='" & i & "'"
     If (Not isNull(Request.Form("Year"))) Then If (CStr(i) = CStr(Request.Form("Year"))) Then Response.Write("SELECTED") : Response.Write("")
     Response.Write ">" & i & "</option>" & vbCRLF
Next
%>
</select>
If anybody has experienced this problem of slow ASP loops in IIS please let me know how to solve it. I have a deadline this week and must have this site running at full speed.

Thanks,

Travis Cable
tlcable7 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-22-2004, 11:35 AM hi
Mooofasa's Avatar
Defies a Status

Posts: 1,611
Name: Michael (mik) Land
Location: England
Trades: 0
I have no idea about what your problem is, but could you shead me some light as to why you have

Code:
<select name="Year" id="Year">
<option value=""></option>
<%
Dim thisYear, i
thisYear = DatePart("yyyy",Date())
For i = (thisYear-84) to (thisYear-6)
     Response.Write "<option value='" & i & "'"
     If (Not isNull(Request.Form("Year"))) Then If (CStr(i) = CStr(Request.Form("Year"))) Then Response.Write("SELECTED") : Response.Write("")
     Response.Write ">" & i & "</option>" & vbCRLF
Next
%>
</select>
Why have you got 3 " ???? You have the extra one here

</option>"

I dont think it is your problem, but i just dont understand why it is there.

Thank you.


Mik
__________________

Please login or register to view this content. Registration is FREE
- Tumblog with thoughts, quotes, links, videos, images and my creations.

Please login or register to view this content. Registration is FREE
- The best free web browser.

Please login or register to view this content. Registration is FREE
- Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Reply     « Reply to ASP loops running slow on new server...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22235 seconds with 12 queries