asp:table no repeat background

Posted on 2009-12-16
Last Modified: 2012-05-08
I would like to set the backgound of an asp table to a single image centred in the table.
<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
Question by:Simon Cripps
    LVL 6

    Accepted Solution

    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

    Author Comment

    by:Simon Cripps
    works a treat, many thanks

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
    I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    730 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now