set background image on a table cell in vb.net codebehind

Posted on 2006-04-07
Medium Priority
Last Modified: 2008-02-01
I want to set the background image of a table cell. i have an html table and I am using the runat=server.
 CType(tblMain.FindControl("tdSecondWeek"), HtmlTableCell).BgColor = "white"

the above works to set the bgcolor but I want to set a background image and then toggle between two different images. to give the appearance of active tabs like on this website.

please help


Question by:jcook32
1 Comment
LVL 18

Accepted Solution

Elvio Lujan earned 2000 total points
ID: 16402968
CType(tblMain.FindControl("tdSecondWeek"), HtmlTableCell).background = "file.gif"

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month16 days, 23 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question