Forums
This topic is locked
cell background determined by value in database
Posted 29 Nov 2006 19:14:40
1
has voted
29 Nov 2006 19:14:40 fergus dyersmith posted:
I have managed to get this working in terms of background colorie bgcolor but can't seem to get it to work with an image
so
If the value in recordset say equals one the background image of cell would be say booked.gif
If the value equals 2 then background image equals free.gif
Any help appreciated
Edited by - fergusoutgoing on 29 Nov 2006 19:15:16
Edited by - fergusoutgoing on 29 Nov 2006 19:15:55
Replies
Replied 30 Nov 2006 04:47:06
30 Nov 2006 04:47:06 Wim Conix replied:
Hello Fergus,
This should indeed work the same way as with the background color.
Only be sure to refer in your code to the image filename in the background tag (not the bgcolor tag).
E.g. for the background of a table it would be something like this :
<table width="100%" cellpadding="5" background="<%=(rsLayout.Fields.Item("Background_ImageFile".Value)%>">
If hope this helps...
Greetzz,
Wim
Wim Conix
www.image-belle.com
This should indeed work the same way as with the background color.
Only be sure to refer in your code to the image filename in the background tag (not the bgcolor tag).
E.g. for the background of a table it would be something like this :
<table width="100%" cellpadding="5" background="<%=(rsLayout.Fields.Item("Background_ImageFile".Value)%>">
If hope this helps...
Greetzz,
Wim
Wim Conix
www.image-belle.com
Replied 08 Dec 2006 18:09:11
08 Dec 2006 18:09:11 fergus dyersmith replied:
Sweet works