Results 1 to 2 of 2

Thread: problem with response write - help?

  1. #1

    Thread Starter
    Member
    Join Date
    May 2000
    Location
    London, UK
    Posts
    39

    Cool

    response.clear


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

    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?



  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    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=<%br ight

    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)




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width