472,371 Members | 1,616 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,371 software developers and data experts.

for loop not working, page hangs up.


I have two asp pages. when both contain lots of coding, loops etc.

if i run the first page that contain for loop for creating array of textboxes,
then this page run successfully.

but if i include this first page in the second page using <#include.....> then the for loop is not working n page hangs up.

Plz tell me what is the reason.n any solution if any.

thanks in advance.
this is urgent.
May 24 '07 #1
2 1377
3,406 Expert 2GB
Urgent, huh?

Well it sounds like the loop isn't advancing. There are lots of reasons why a loop might not advance, the most likely is that there is an error that is negating the advancing mechanism. An error would normally cause the page to stop, but if you use an "on error" line that may keep the loop cycling continuously.

A second reason the loop may not advance is if you re-used a variable between the two pages and as the variable is called, it cancels the loop's advance.

So I suggest trying two things: first comment out your error handlers. (this might point out the problem by itself) Second, put in a line that displays the loop index each time the loop executes (this just lets you observe the looping, allows you to verify that it goes correctly):
Expand|Select|Wrap|Line Numbers
  1. for x = 1 to 30
  2.    response.write "<!-- x: " & x & " -->" & vbNewLine
  3. next
May 24 '07 #2
Thanks a lot
now it is working by adding 'on error....'
this is a live site work, that is y i was in hurry.......
May 25 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Marty | last post by:
I can navigate all over my site when there is no DB involved, but as soon as I hit the database, the page hangs and times out. Since the page does not change, the trace debugging does not tell me...
by: Brad Quinn | last post by:
It appears that IIS hangs the first time two requests are made for same page in quick succession. Although it may very well be something else I'm doing wrong. I have a page (ViewDocument.aspx)...
by: happyinst | last post by:
I have recently added some code to a web application and now I find it hanging after I do about 2 or 3 postbacks within the application. It hangs after doing different things (I cannot find...
by: mccoyn | last post by:
When I have a long process to run I can create a new thread to run it and create a modal dialog on my GUI thread. The modal dialog prevents any messages (like button clicks) from working on my...
by: IdleBrain | last post by:
Hello all, The sleep() method hangs up the application and does not respond to events. So, I wrote a small delay loop that will allow the application to respond to events. 'Use Delay(500) to...
by: sp | last post by:
The application is written in Visual Basic / .NET and working without problems under Windows XP, Windows 2000, Windows 2003 but it isn't working under Windows ME and Windows 98 - the computer...
by: mrjoka | last post by:
hi experts, i'm developing a page in ASP but i'm doing also some javascript insode the page. i'm creating a frame and i want to loop this frame with a duplicateloop function so the form will be...
by: d3vkit | last post by:
Okay so I can NOT get my while loop to work. It's the most confusing thing I've ever come across. It was working fine and then suddenly, nothing. No error. The page just dies. I am using PHP5 with...
by: Whizzo | last post by:
Hi all; This is driving me up the wall! A few months ago the Remote Web Workplace failed to work on a pretty much fresh install of SBS 2003. I tried everything in the Microsoft rulebook to get it...
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.