473,803 Members | 3,625 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

for loop not working, page hangs up.

20 New Member
Hi,

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 1460
jhardman
3,406 Recognized Expert Specialist
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
  4.  
Jared
May 24 '07 #2
Dipti Singh
20 New Member
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

2
1197
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 what is going on. In fact, when I step through the routines, all database routines end nicely. My connections are closed, and I'm not caught in any loops. The weird thing is that the site runs fine on my development computer, but hangs on...
2
2330
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) that dynamically generates one or more image tags. The source attribute of the image tag is another page (ViewImage.aspx) that simply writes the image data to the response. When I load ViewDocument.aspx for the first time, everything is fine as...
1
3836
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 anything in common) and when I run in Debug mode, it doesn't even appear to be within my code when it hangs (I put breakpoints all over the place and it doesn't stop at any of them during the hang). It hangs after I click a button on the page... but...
3
2248
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 main Form. It also provides a message loop, which allows paint messages and calls to the Control::Invoke function to run. I can use these to invalidate an area and update it with intermediate results of my process. When the process is done, I...
10
8309
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 delay the application for 500ms. Public blnSleepTimeExpired As Boolean Public Sub Delay(ByVal intSleepTimems As Integer)
10
1740
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 hangs. After computers hangs you can move mouse but can not press any key. Alt - Ctrl- Del isn’t working so you have to reset the computer by pressing button. I checked several Win 98 and Me - clean install to - always the same! At the beginning...
2
1868
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 duplicate so many time, also i'm using a removeloop if the client want to remove the frame, in the html of the page i'm creating a table and i'm calling this loop, the problem now is that when i'm calling the removeloop it removes the frame but not the...
2
2076
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 mysql. Same problem in Fx 2.0 and IE 7. I have the query sort of spread out across three pages to make it easier for me to generate it; I have a pagination script which checks what is being accessed from the query string (is it the whole blog or an...
0
2529
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 working but instead OWA started playing up. Forms-based authentication stopped working, then it started coming up with Page Not Found errors, but -only- if SSL was turned on at the server end. If I turn SSL off then forms-based authentication...
0
9700
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9564
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10546
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10292
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9121
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6841
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2970
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.