PDA

View Full Version : Image Link


The Wizzard
04-04-2003, 02:06 AM
Im using this code to get an image out of my database, and display it.

I want to make it a link, so they can click on it and make it bigger...


My code is


<%= replace(x_small_pic & "",chr(10),"<br>") %>

how can i add a border="0"

i can make it work, but it has an ugly purple border

THanks!!

Mhtml
04-04-2003, 03:57 AM
Hmm...
Firstly why not make good use of htmlEncode instead of replace.

Secondly I will need to see the full image code to show you how.
But it'd go something like this.

<%= response.htmlEncode("<img src="&chr(34)&x_small_pic&chr(34)&" border="&chr(34)&"0&chr(34)&"/>")%>