problem setting background image on a link

Discussion in 'ASP .Net' started by Jeff, Mar 17, 2009.

  1. Jeff

    Jeff Guest

    hi

    asp.net 2.0

    No background image is displayed on this link. my goal to have a image that
    can be clicked on...
    My ultimate goal is to embed image swapping using CSS, so I thought it was a
    good idea to start with to have somehting displayed at all... nothing is
    displayed..

    <a id="Test1" runat="server" href="~/Pages/Test1.aspx"
    style="background-image:url('~/Image/Original/Test1.png');" ></a>

    in my webproject the images are stored in the \images\Original\ folder

    why isn't anything displayed? what most I do to embed image swapping?
     
    Jeff, Mar 17, 2009
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Marco Lehmann

    link a background-image / div

    Marco Lehmann, Nov 4, 2003, in forum: HTML
    Replies:
    5
    Views:
    7,813
    Toby A Inkster
    Nov 4, 2003
  2. Rich West

    background-image and link?

    Rich West, Jan 14, 2004, in forum: HTML
    Replies:
    4
    Views:
    672
    brucie
    Jan 14, 2004
  3. paul j
    Replies:
    10
    Views:
    1,033
    Starshine Moonbeam
    Dec 23, 2004
  4. Jean-Louis Crouzet

    Table td with background image & link & image

    Jean-Louis Crouzet, Jul 21, 2005, in forum: HTML
    Replies:
    4
    Views:
    1,831
    Jean-Louis Crouzet
    Jul 23, 2005
  5. jc
    Replies:
    3
    Views:
    2,032
  6. jc
    Replies:
    1
    Views:
    1,611
    Neredbojias
    Mar 19, 2008
  7. krishna

    problem setting focus to link/ image

    krishna, Dec 8, 2003, in forum: Javascript
    Replies:
    1
    Views:
    120
    David Dorward
    Dec 8, 2003
  8. Dj Frenzy
    Replies:
    3
    Views:
    568
    Robert
    Feb 10, 2004
Loading...