PDA

Click to See Complete Forum and Search --> : problem with response write - help?


raj2000
Jun 28th, 2000, 10:08 PM
response.clear


response.write("bmpconv5.asp?userid=1&Lat1=<%topleftx%>&Lat2=<%toplefty%>&Lat3=<%brightx%>&Lat4=<%bright

y%>&Lon1=<%msh%>&Lon2=<%msw%>")



response.clear response.write("bmpconv5.asp?userid=1&Lat1=
Microsoft VBScript runtime error '800a000d'

Type mismatch: 'toplefty'

/yeomanlocal/geo2.asp, line 145

Dont no what is causing this problem?

help?

Clunietp
Jun 28th, 2000, 11:58 PM
do not use the ASP script delimiters (<%) when you are already inside the ASP script delimiter tags (you have to be to use response.write...)

change this:
response.write("bmpconv5.asp?userid=1&Lat1=<%topleftx%>&Lat2=<%toplefty%>&Lat3=<%brightx%>&Lat4=<%bright

y%>&Lon1=<%msh%>&Lon2=<%msw%>")

to this:
response.write("bmpconv5.asp?userid=1&Lat1=" & topleftx & "&Lat2=" & toplefty & "&Lat3=" & brightx & "&Lat4=" & brighty & "&Lon1=" & msh & "&Lon2=" & msw)