• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1058
  • Last Modified:

asp:table no repeat background

I would like to set the backgound of an asp table to a single image centred in the table.
however
<asp:Table ID="Table1" runat="server" Width="290px" BackImageUrl ='<%# Bind("PPTProductImage") %>'  align="center" HorizontalAlign="Center" background-repeat="no-repeat">

does not work and keps repeating the BackImageUrl
0
Simon Cripps
Asked:
Simon Cripps
1 Solution
 
iandianCommented:
background-repeat is no property of the table, try this:

<asp:Table ID="Table1" runat="server" Width="290px" BackImageUrl ='<%# Bind("PPTProductImage") %>'  align="center" HorizontalAlign="Center" style="background-repeat:no-repeat">

untested but i think it should work
0
 
Simon CrippsAuthor Commented:
works a treat, many thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now