User Controls and Image Sources

Results 1 to 2 of 2

Thread: User Controls and Image Sources

  1. #1
    Join Date
    Dec 1969

    Default User Controls and Image Sources

    I am pulling my hair out regarding how the source URL should be for images, javascript, etc. when including user controls in my aspx pages. I am developing sites on my local machine (XP Pro, IIS 5.0) and can&#039;t seem to get my user controls to appear correctly. All my images are broken and I get javascript errors because it can&#039;t find the file. This is all due to how I am defining the source (I believe).<BR><BR>Since my user controls can be used at different levels within my app, I define the source as src="/images/image.gif"&#062;. The same applies to my javascript - src="/js/tabpane.js". What I think is happening is it is looking for these files at the root of my wwwroot folder. I am using VS.NET 2003 to develop my sites. Can anyone help me out? Is there a better way of organizing/setting up my site structure?

  2. #2
    Join Date
    Dec 1969

    Default RE: User Controls and Image Sources

    Try src="./images/image.gif"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts