Results 1 to 2 of 2

Thread: Syntax Error

Hybrid View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 1999
    Location
    London, England
    Posts
    213
    I am getting an Expected end of statement Error. Can someone tell me what is wrong with my code ?

    Response.Write "<LI><A HREF=""/" TARGET=\"basefrm\" & objFile.Name & _
    """>" & objFile.Name & "</A><BR>"

    I want the Response written to basefrm which refers to another frame.

  2. #2
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696
    Hi nmretd

    the speech marks that you are using within the HTML is conflicting with the Sring for the Eesponse.Write either replace them with single qoutes or use chr(34).

    Response.Write "<LI><A HREF='/' TARGET='\basefrm\" & objFile.Name & _
    "'">" & objFile.Name & "</A><BR>"

    Or

    Response.Write "<LI><A HREF=" & chr(34) & "/" & chr(34) TARGET=" & chr(34) & "\basefrm\" & objFile.Name & _
    chr(34) & ">" & objFile.Name & "</A><BR>"

    Either way will work.

    Hope this helps

    Ian
    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

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