ASP.NET user control not displaying images

B

buzz

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/ =-
 
G

Guest

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")%>'
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top