|
 |
asp_web_howto thread: Displaying an image from table
Message #1 by "Kennan Ingalsbe" <kingals@k...> on Wed, 26 Sep 2001 19:42:12
|
|
Hello,
I have a table that contains the path of an image that I want displayed
when a certain value is picked from a select box. For instance, I want to
display the image of a Penguin when "Penguin" is selected from my select
box. Can I store the source path of the image on my table, and then
retrieve it when a certain value is selected, and display that image on my
page? And how would I execute this from my select box?
Any ideas would be great.
KJI
Message #2 by "Mike Scott" <mscott@n...> on Wed, 26 Sep 2001 12:40:17 -0700
|
|
Ok...
Yes you can store the path to your image in a table.
Yes you can retrieve that path from the table
Yes you can display that Image after getting the path.
You will have to display the image in a picture box.
select pathname from tableImages where imagename = 'Penguin'
image1.name = "Penguin"
image1.path(?I think?) = recordset("pathname")
now, to do the select box, you can add this action into the On_Click event
of your list box.
Mike
----- Original Message -----
From: "Kennan Ingalsbe" <kingals@k...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Wednesday, September 26, 2001 7:42 PM
Subject: [asp_web_howto] Displaying an image from table
> Hello,
> I have a table that contains the path of an image that I want displayed
> when a certain value is picked from a select box. For instance, I want to
> display the image of a Penguin when "Penguin" is selected from my select
> box. Can I store the source path of the image on my table, and then
> retrieve it when a certain value is selected, and display that image on my
> page? And how would I execute this from my select box?
> Any ideas would be great.
> KJI
|
|
 |