|
 |
asp_web_howto thread: RE: Graphic in Scrolling List
Message #1 by "Drew, Ron" <RDrew@B...> on Mon, 2 Dec 2002 13:59:53 -0500
|
|
I think you are correct...maybe use a javascript after selection to do a
<a href> to the image
-----Original Message-----
From: Joe Ingle [mailto:joe@k...]
Sent: Thursday, November 28, 2002 11:09 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Graphic in Scrolling List
Correct me if I'm wrong, but you can't put an image in a select list,
even using css attributes.
Joe
-----Original Message-----
From: TomMallard [mailto:mallard@s...]
Sent: Thursday, November 28, 2002 3:50 PM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Graphic in Scrolling List
Do While Not rsVehicles.EOF
strOption =3D "<OPTION VALUE=3D""" & rsVehicles("ID") & """>" &
PadLeftString(rsVehicles
("year"),"0",4) & " " & PadLeftString(rsVehicles("vehiclemake"),"
",12) & " " & PadLeftString(rsVehicles("model")," ",10) & " "
& PadLeftString(FormatNumber(rsVehicles("Price"),0)," ",8) & " " &
"Euros" & " "
if rsVehicles("hasPicture") =3D true then strOption =3D strOption &
"<img
src-""../images/camera.gif"">" & vbcrlf
Response.Write(strOption)
strOption =3D empty
rsVehicles.MoveNext
Loop
hth,
tom mallard
seattle
-----Original Message-----
From: John Howe [mailto:johnhowe@c...]
Sent: Thursday, November 28, 2002 9:55 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Graphic in Scrolling List
I have a list which is produced as shown below.
<SELECT NAME=3D"Vehicle" SIZE=3D"10">
' Loop through recordset object, displaying each record.
<%
Do While Not rsVehicles.EOF
%>
<OPTION VALUE =3D "<%=3D rsVehicles("ID")%>" >
<%=3DPadLeftString(rsVehicles
("year"),"0",4) & " " & PadLeftString(rsVehicles ("vehiclemake"),"
",12) & " " & PadLeftString(rsVehicles ("model")," ",10) &
" " & PadLeftString(FormatNumber(rsVehicles
("Price"),0)," ",8) & " " & "Euros" & " " & rsVehicles
("hasPicture")%> <%
rsVehicles.MoveNext
Loop
%>
I want to be able to show a thumbnail of a camera on each line where
haspicture is true. The graphic is in ../images/camera.gif I have tried
various options but normally only achieve the display of a opening
quotes. Has anybody got a solution.
Thanks
John
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
Message #2 by "Lawrence Mbijiwe" <lawrence@m...> on Tue, 3 Dec 2002 09:49:10 -0000
|
|
Hi Tom
try using
If rsVehicles("hasPicture")=true Then
Response.Write "../images/camera.gif"
Else
response.write " "
End if
hope this helps.
Regards
Lawrence M
-----Original Message-----
From: TomMallard [mailto:mallard@s...]
Sent: Thursday, November 28, 2002 3:50 PM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: Graphic in Scrolling List
Do While Not rsVehicles.EOF
strOption =3D "<OPTION VALUE=3D""" & rsVehicles("ID") & """>" &
PadLeftString(rsVehicles
("year"),"0",4) & " " & PadLeftString(rsVehicles("vehiclemake"),"
",12) & " " & PadLeftString(rsVehicles("model")," ",10) & " "
& PadLeftString(FormatNumber(rsVehicles("Price"),0)," ",8) & " " &
"Euros" & " "
if rsVehicles("hasPicture") =3D true then strOption =3D strOption &
"<img
src-""../images/camera.gif"">" & vbcrlf
Response.Write(strOption)
strOption =3D empty
rsVehicles.MoveNext
Loop
hth,
tom mallard
seattle
-----Original Message-----
From: John Howe [mailto:johnhowe@c...]
Sent: Thursday, November 28, 2002 9:55 AM
To: ASP Web HowTo
Subject: [asp_web_howto] Graphic in Scrolling List
I have a list which is produced as shown below.
<SELECT NAME=3D"Vehicle" SIZE=3D"10">
' Loop through recordset object, displaying each record.
<%
Do While Not rsVehicles.EOF
%>
<OPTION VALUE =3D "<%=3D rsVehicles("ID")%>" >
<%=3DPadLeftString(rsVehicles
("year"),"0",4) & " " & PadLeftString(rsVehicles ("vehiclemake"),"
",12) & " " & PadLeftString(rsVehicles ("model")," ",10) &
" " & PadLeftString(FormatNumber(rsVehicles
("Price"),0)," ",8) & " " & "Euros" & " " & rsVehicles
("hasPicture")%> <%
rsVehicles.MoveNext
Loop
%>
I want to be able to show a thumbnail of a camera on each line where
haspicture is true. The graphic is in ../images/camera.gif I have tried
various options but normally only achieve the display of a opening
quotes. Has anybody got a solution.
Thanks
John
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
---
END OF DIGEST
|
|
 |