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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem executing loops 2

Status
Not open for further replies.

unicorn11

Programmer
Jun 10, 2000
392
IN
i have put the code for a loop in two pages

when one page is submitted some data
the code is coming via

Code:
<%
 i = 0 
 a = Request.querystring(&quot;num&quot;)
 response.write(a)
 do while a > i
   response.write(&quot;unicorn11 was here&quot;)
  i = i + 1 
 loop
'response.write(a)
%>

this is the code of the page from where the data is being sent
Code:
 function callfunc() {
  if (document.form1.num.value == &quot;&quot;) {
   var dejavo = &quot;test2.asp?num=0&quot;; 
  } else {
   var dejavo = &quot;test2.asp?num=&quot; + document.form1.num.value;
  }
  window.location = dejavo;
 }

i have almost every method of sending data
post / get
the above was a temporary method using javascript

but everytime the loop executes it gets timed out
but if is &quot;a&quot; (value) is set in the code of that page the loop is executing

thanks to everybody Unicorn11
unicorn11@mailcity.com

[red]Luck is not chance, it's toil; fortune's expensive
smile is earned.[red]
 
a = Cdbl(Request.querystring(&quot;num&quot;))

??? because a is passed as a string.
br
Gerard
 
no even with formatnumber it is not working Unicorn11
unicorn11@mailcity.com

[red]Luck is not chance, it's toil; fortune's expensive
smile is earned.[red]
 
thanks guys it is working

but tell me i was using formatnumber it should work ??

regards
Abhishek Unicorn11
unicorn11@mailcity.com

[red]Luck is not chance, it's toil; fortune's expensive
smile is earned.[red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top