DeKar
Posts: 5
|
| Posted: 02/09/2007, 8:40 AM |
|
Please they could say to me like hiding an image when in the data base this empty one.
Thanks,
Carles
|
 |
 |
Benjamin Krajmalnik
|
| Posted: 02/09/2007, 9:14 AM |
|
Assuming you have an image tag called "MyImage" such as:
<img src={MyImage}>
You need to encapsulate it as:
<!-- BEGIN Image MyImage --><img src={MyImage}><!-- END Image MyImage -->
Now, in the BeforeShow event for MyImage add:
if EventCaller.Value = "" then
EventCaller.Visible = false
end if
This will remove the image tag altogether so you do not have a "broken
image" placeholder.
|
|
|
 |
DeKar
Posts: 5
|
| Posted: 02/09/2007, 9:54 AM |
|
Thanks, Benjamin.
I have not given the details.
The name of the data base is: cinema.
The name of the field of the image is: logo.
The name of the form is: cinema.
I work in Asp with template.
Thanks to answer to me .
Carles
|
 |
 |
DeKar
Posts: 5
|
| Posted: 02/09/2007, 9:59 AM |
|
Ok!!!!!!!!!!!!
But they do not leave the images that there are in the data base?
It wanted that when there is an image this leaves
Here I have an example of the page:
http://www.cgisbert.com/prova/logo.asp
|
 |
 |