img code

Discussion in 'C#' started by s4salman, Aug 23, 2007.

  1. #1
    Dear
    i m using this code to print image but i m getting error message:

    Response.Write ("<br>")
    	Response.Write (rsGuestbook("view"))
    	Response.Write ("<br>")
    	Response.Write <img src=\"http://wallpapers101.com/wallpapers/andiana/(rsGuestbook("url"))\">
    	Response.Write ("<br>")
    
    PHP:

    error message i m getting is :

    Error Type:
    Microsoft VBScript compilation (0x800A03EA)
    Syntax error
    /view.asp, line 45, column 15
    Response.Write <img src=\"http://wallpapers101.com/wallpapers/andiana/(rsGuestbook("url"))\">
    --------------^

    plz help me how to correct img code.
     
    s4salman, Aug 23, 2007 IP
  2. yugolancer

    yugolancer Well-Known Member

    Messages:
    320
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Use a single quotes:

    <%
    Response.Write("<img src='http://helios.gsfc.nasa.gov/image_euv_press.jpg'>")
    %>
    Code (markup):
    '

    HTH
    Regards :)
     
    yugolancer, Aug 28, 2007 IP
  3. Professional Dude

    Professional Dude Prominent Member

    Messages:
    6,261
    Likes Received:
    430
    Best Answers:
    0
    Trophy Points:
    330
    #3
    now you won't get an error, i have tried that code and it works..

    :)
     
    Professional Dude, Aug 28, 2007 IP
  4. yugolancer

    yugolancer Well-Known Member

    Messages:
    320
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #4
    Of course it works. Otherwise i would not send the code here :D
    But, anyway thanks for the confirmation.

    Regards :)
     
    yugolancer, Aug 30, 2007 IP