Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting background image in TableCell

Status
Not open for further replies.

Peppi

Programmer
Apr 9, 2001
205
CA
Hi,

How can I programmatically change the background image of an ASP TableCell? Tried the following but it didn't work:
cell.Attributes.Item("background") = "url(Images/dots.jpg)"

Thx.
 
OK, cell.Style("background-image") = "url(Images/dots.jpg)" did the trick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top