CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 hide images

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.