PDA

Click to See Complete Forum and Search --> : problems with response.redirect


raj2000
Jul 3rd, 2000, 06:06 AM
Hi,

I have a problem with the following response.redirect

response redirect ("bmpcon2.asp?userid=1"&topleftx="&Lon1="&toplefty="Lat1="&brightx="&Lon2="&brighty="
&Lat2&")


When I try to run this via the browser, The error message the server cannot find the file, but the file is there , I try and run the .asp code without this code and it works fine.


Can you tell me what is wrong with the above code?

Lat1, Lat2 etc are the variables which are being passed
into topleftx, toplefty etc.

Is this the correct way of calling an asp page and passing values to this.


Please help

Ianpbaker
Jul 3rd, 2000, 06:42 AM
Hi raj2000

take all the speech marks ou apart from the first and last to get

response redirect ("bmpcon2.asp?userid=1&topleftx=&Lon1=&toplefty=Lat1&brightx=&Lon2=&brighty=&Lat2&")

then to collect them in the asp page use

myvar1 = request.querystring("userid")
myvar2 = request.querystring("topleftx")
etc.

Ian