Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am using VB.NET, and I have a table with a background image = "image.jpeg"

Depending on the date, I would like to dynamically change this image. For example, during Christmas, I would want the background image to = "christmasImage.jpeg"

 

I understand the table has to runat="server" but I am confused as to what the code in the code behind would like because in my Visual Studio .NET application does not have a background property within the table. Therefore, I do not know how to reach the table background property to change it. Do I need a style sheet, if so what would the code look like in the code behind?

 

Thanks...

 

ex:

 


If (Month(Today()) = 12) Then



    'Set Christmas image as background image of table --- need guidance here!



End If

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...