Print Page | Close Window

Using ASP to Place an Image

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=636
Printed Date: 29 March 2026 at 1:24pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Using ASP to Place an Image
Posted By: donnytree
Subject: Using ASP to Place an Image
Date Posted: 01 March 2003 at 6:02pm

How do I place an image using ASP to draw the source from an Access Database.

this is the line I have

  Response.Write("<img alt='Here Would be a photo' >")

What do I need to putas my img src?



-------------
Visit the Doncaster Dragons Forums @ http://www.te.fragworld.co.uk/forum/default.asp



Replies:
Posted By: michael
Date Posted: 01 March 2003 at 7:52pm
From what I understand you'd be pulling the path from a db so it would be somethin like <img src"<%=rs("imagepath")%>" alt="...">


Posted By: donnytree
Date Posted: 04 March 2003 at 5:38am

Not sorted yet.

Error Message

Microsoft VBScript compilation error '800a03ee'

Expected ')'

/teams/view_team.asp, line 45

Response.Write("<img src="""(rsTeam("Badge"))""">")
---------------------------------------------^
Here is that line of code
  Response.Write("<img src="""(rsTeam("Badge"))""">")


-------------
Visit the Doncaster Dragons Forums @ http://www.te.fragworld.co.uk/forum/default.asp


Posted By: MorningZ
Date Posted: 04 March 2003 at 8:33am
learn ASP syntax

Response.Write("<img src=""" & rsTeam("Badge") & """>")

-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: donnytree
Date Posted: 05 March 2003 at 3:59am
I'm still learning. So i'm pretty prone to mistakes I guess

-------------
Visit the Doncaster Dragons Forums @ http://www.te.fragworld.co.uk/forum/default.asp



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net