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
Simon CrippsOwnerAsked:
Who is Participating?
 
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 CrippsOwnerAuthor Commented:
works a treat, many thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.