ksragesh
06-16-2005, 01:24 PM
Hi buddies,
Got a problem to be solved here.. My application is suddenly throwing an error (division by zero). When i run it in my machine i do not get any error.
I sent my code for testing and this err was reported there.
Here is a small description of what my page does..
I am trying to collect a data from an array position and accordingly extract records from my database.. when the page loads for the first time request.form("thispage") will have empty string. so i set the stStart value as 1. Below the page i have a list of page numbers going from 1....n
when the user clicks on the page number(say 2) this page is reloaded and is posted back using a hidden variable. I tested this in 2 machines and it worked without giving any trouble.
One of my friends suggested to check the buffer size of some ini file. cud this be the cause...
The err pointed was at this code
thisPage = request.form("thisPage")
if thisPage = "" Then
stStart = 1
else
stStart = Trim(Request.form("stStart"))
end if
thanx
Ragesh
Got a problem to be solved here.. My application is suddenly throwing an error (division by zero). When i run it in my machine i do not get any error.
I sent my code for testing and this err was reported there.
Here is a small description of what my page does..
I am trying to collect a data from an array position and accordingly extract records from my database.. when the page loads for the first time request.form("thispage") will have empty string. so i set the stStart value as 1. Below the page i have a list of page numbers going from 1....n
when the user clicks on the page number(say 2) this page is reloaded and is posted back using a hidden variable. I tested this in 2 machines and it worked without giving any trouble.
One of my friends suggested to check the buffer size of some ini file. cud this be the cause...
The err pointed was at this code
thisPage = request.form("thisPage")
if thisPage = "" Then
stStart = 1
else
stStart = Trim(Request.form("stStart"))
end if
thanx
Ragesh