| Author |
Looping code for an unknown reason!
|
|
| Luke - eat.lemons@gmail.com 2006-10-30, 6:58 pm |
| Hi,
Im pretty new to asp so all light on this question would be great.
Basically i need to test to see what value is set (where to retrieve the
data from) so ive done it like this:
If Request.Querystring("id") = "" then
TidF=Request.Form("TidF")
Else
TidF=Request.Querystring("id")
End If
The data Request.Form("TidF") comes from a form if submit is pressed.
The data Request.Querystring("id") comes from the url being .asp?id=number
However it seems to keep looping round even though i have ended the if
statement and set the var.
all help would be great thanks.
| |
| Ray Costanzo [MVP] 2006-10-30, 6:58 pm |
| There's nothing here that would cause a loop. What makes you think
something's looping?
Ray at work
<eat.lemons@gmail.com> wrote in message
news:vNqdnZJ7to614qHYRVnyhA@eclipse.net.uk...
> Hi,
>
> Im pretty new to asp so all light on this question would be great.
>
> Basically i need to test to see what value is set (where to retrieve the
> data from) so ive done it like this:
>
> If Request.Querystring("id") = "" then
> TidF=Request.Form("TidF")
> Else
> TidF=Request.Querystring("id")
> End If
>
> The data Request.Form("TidF") comes from a form if submit is pressed.
>
> The data Request.Querystring("id") comes from the url being .asp?id=number
>
> However it seems to keep looping round even though i have ended the if
> statement and set the var.
>
> all help would be great thanks.
>
>
| |
| Anthony Jones 2006-10-30, 6:58 pm |
|
<eat.lemons@gmail.com> wrote in message
news:vNqdnZJ7to614qHYRVnyhA@eclipse.net.uk...
> Hi,
>
> Im pretty new to asp so all light on this question would be great.
>
> Basically i need to test to see what value is set (where to retrieve the
> data from) so ive done it like this:
>
> If Request.Querystring("id") = "" then
> TidF=Request.Form("TidF")
> Else
> TidF=Request.Querystring("id")
> End If
>
> The data Request.Form("TidF") comes from a form if submit is pressed.
>
> The data Request.Querystring("id") comes from the url being .asp?id=number
>
> However it seems to keep looping round even though i have ended the if
> statement and set the var.
>
> all help would be great thanks.
>
>
There is no way this code can loop. What makes you think it is looping?
| |
| Luke - eat.lemons@gmail.com 2006-10-30, 6:58 pm |
| Ray Costanzo [MVP] wrote:
> There's nothing here that would cause a loop. What makes you think
> something's looping?
>
> Ray at work
>
> <eat.lemons@gmail.com> wrote in message
> news:vNqdnZJ7to614qHYRVnyhA@eclipse.net.uk...
>
>
At a certain point the code seems to loop round the whole script and
dosent halt ever since ive added in them lines.
Here is my code:
http://rafb.net/paste/results/qXOfJn50.html
Thanks agian.
| |
| Ray Costanzo [MVP] 2006-10-30, 6:58 pm |
| The only loop you have in your code starts on line 99. And best as I can
tell, you'll loop through there just fine. (Although I am wondering why you
don't have " AND filled='Y'" in your query.) Inside of your loop, say at
line 100, put this:
Response.Write "In the loop.<hr>"
Response.Flush
What do you see when you load the page?
Ray at work
<eat.lemons@gmail.com> wrote in message
news:IO2dnQWEDZVFBqHYnZ2dnUVZ8tidnZ2d@bt
.com...
> Ray Costanzo [MVP] wrote:
> At a certain point the code seems to loop round the whole script and
> dosent halt ever since ive added in them lines.
>
> Here is my code:
>
> http://rafb.net/paste/results/qXOfJn50.html
>
> Thanks agian.
| |
| Luke - eat.lemons@gmail.com 2006-10-30, 6:58 pm |
| Ray Costanzo [MVP] wrote:
> The only loop you have in your code starts on line 99. And best as I can
> tell, you'll loop through there just fine. (Although I am wondering why you
> don't have " AND filled='Y'" in your query.) Inside of your loop, say at
> line 100, put this:
>
> Response.Write "In the loop.<hr>"
> Response.Flush
>
> What do you see when you load the page?
>
> Ray at work
>
>
>
>
>
>
> <eat.lemons@gmail.com> wrote in message
> news:IO2dnQWEDZVFBqHYnZ2dnUVZ8tidnZ2d@bt
.com...
>
>
Hi,
Unfortunately that didn't work.
Heres 2 links to videos that explain this abit better!
http://another-site.net/working.avi
http://another-site.net/failed.avi
The first one (working.avi) shows it functional when you use a number
other than 99999. This number is used to manually prompt for a
javascript input box that posts the data back to the page. It works but
it seems to loop round and keep logging in and out.
Thanks agian.
| |
|
|
|
|