Re: just can't figure this out
From: Mark Fitzpatrick (markfitz_at_fitzme.com)
Date: 09/17/04
- Next message: Neelam Karne: "Try.. Catch...."
- Previous message: pbj: "Re: aspnet_wp.exe sending email at project load"
- In reply to: Mike: "just can't figure this out"
- Next in thread: Mike: "Re: just can't figure this out"
- Reply: Mike: "Re: just can't figure this out"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 17 Sep 2004 12:59:22 -0500
It looks like you are using an HTML table control and not a table web
control. There is no backcolor for an HtmlTable control. Backcolor would be
used if this was a Table Web Control. Instead, use bgcolor and try casting
as an HtmlTable instead.
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
"Mike" <Mike@discussions.microsoft.com> wrote in message
news:2F79E047-B8AA-417D-BEB8-700429E9C387@microsoft.com...
> I've been banging my head on this for days and can't get it working. If i
> can't get it by today then i'm done with it.
> I have a datalist that has a table in it
>
> <asp:datalist id=dl1>
> <itemtemplate><table id=vechicle>
> <tr>
> <td>dataitem</td>
> </tr>
> </table>
> </itemtemplate>
> </aspdatalist>
> and this displays in the datalist nicely formatted etc. and the data is in
> seperate tables within the DL. NOW the part i can't get working. I need to
> change the background color of the table(s) based on the dataitem.
> I can do this on a label with ctype(e.item.findcontrol(""), label) in the
> DL
> itemdatabound routine
>
> but when i try this with a table i get an error, can't find object or
> reference and breaks at the table code:
> dim table as table = CType(e.item.findcontrol("tablename"), table)
> table.backcolor = color.yellow
>
> and it breaks, any suggestions on how i can do this?
>
>
- Next message: Neelam Karne: "Try.. Catch...."
- Previous message: pbj: "Re: aspnet_wp.exe sending email at project load"
- In reply to: Mike: "just can't figure this out"
- Next in thread: Mike: "Re: just can't figure this out"
- Reply: Mike: "Re: just can't figure this out"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|