ASP.NET user control not displaying images

Discussion in 'ASP .Net' started by buzz, Aug 31, 2005.

  1. buzz

    buzz Guest

    I've created a simple table with text and images(gif, jpg) in a user control. Everything displays correctly in the designer. But when I drop the control on the main page, no images display. What am I missing?

    Thanks in advance........


    --------------= Posted using GrabIt =----------------
    ------= Binary Usenet downloading made easy =---------
    -= Get GrabIt for free from http://www.shemes.com/ =-
    buzz, Aug 31, 2005
    #1
    1. Advertising

  2. My first thought is that the path to the images is set correctly as long as
    you are in the directory that the usercontrol is located, but not where the
    main page is?????

    For the images, try using page resolve....
    src='<%=Page.ResolveUrl("~/images/Cool.jpg")%>'

    "buzz" wrote:

    > I've created a simple table with text and images(gif, jpg) in a user control. Everything displays correctly in the designer. But when I drop the control on the main page, no images display. What am I missing?
    >
    > Thanks in advance........
    >
    >
    > --------------= Posted using GrabIt =----------------
    > ------= Binary Usenet downloading made easy =---------
    > -= Get GrabIt for free from http://www.shemes.com/ =-
    >
    >
    =?Utf-8?B?Q3JhaWc=?=, Aug 31, 2005
    #2
    1. Advertising

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. =?Utf-8?B?SmltIE1hY2U=?=

    Displaying images from a database in an image control

    =?Utf-8?B?SmltIE1hY2U=?=, May 5, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    377
    Ashish M Bhonkiya
    May 5, 2004
  2. Ken Varn
    Replies:
    2
    Views:
    550
    Ken Varn
    May 11, 2004
  3. =?Utf-8?B?Smlt?=
    Replies:
    5
    Views:
    8,634
    =?Utf-8?B?Smlt?=
    Mar 2, 2005
  4. =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=

    RE: ASP.NET website NOT displaying any images - HELP!!

    =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=, Dec 1, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    647
    =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=
    Dec 1, 2006
  5. whyman
    Replies:
    4
    Views:
    904
    whyman
    Mar 23, 2006
Loading...

Share This Page