P
phil2phil
Hi,
Right now I have a datalist, that renders the following html:
<tr>
<td class="daycss" align="Left" valign="Top"
style="background-color:#EEEEEE;height:20px;">
<div style="PADDING-LEFT:26px;
PADDING-TOP:1px">Monday</div> </td>
</tr>
<tr>
<td class="daycss" align="Left" valign="Top"
style="background-color:#EEEEEE;height:20px;">
<div style="PADDING-LEFT:26px;
PADDING-TOP:1px">Tuesday</div> </td>
</tr>
<tr>
<td class="daycss" align="Left" valign="Top"
style="background-color:#EEEEEE;height:20px;">
<div style="PADDING-LEFT:26px;
PADDING-TOP:1px">Wednesday</div> </td>
</tr>
We now need to have each cell use a background image, but they need to
vary, so Monday's background image will not be the same as Tues. The
images sizes will be the same, but the image displayed will vary. Is
there anyway to do this? I can remove the ItemStyle-CssClass="daycss"
property I've set in the datalist, but how do I get it to set a
different image for each cell?
Thanks.
Right now I have a datalist, that renders the following html:
<tr>
<td class="daycss" align="Left" valign="Top"
style="background-color:#EEEEEE;height:20px;">
<div style="PADDING-LEFT:26px;
PADDING-TOP:1px">Monday</div> </td>
</tr>
<tr>
<td class="daycss" align="Left" valign="Top"
style="background-color:#EEEEEE;height:20px;">
<div style="PADDING-LEFT:26px;
PADDING-TOP:1px">Tuesday</div> </td>
</tr>
<tr>
<td class="daycss" align="Left" valign="Top"
style="background-color:#EEEEEE;height:20px;">
<div style="PADDING-LEFT:26px;
PADDING-TOP:1px">Wednesday</div> </td>
</tr>
We now need to have each cell use a background image, but they need to
vary, so Monday's background image will not be the same as Tues. The
images sizes will be the same, but the image displayed will vary. Is
there anyway to do this? I can remove the ItemStyle-CssClass="daycss"
property I've set in the datalist, but how do I get it to set a
different image for each cell?
Thanks.