473,383 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

New Website Porject with UserControls adn cannot see images?

First, I am using VS2005 with windows XP. I am having an issue where I cannot
see the images in my usercontrols or the ASPX pages they are dropped onto
(the ASPX pages are on the root of the site for now). Indies my user control
I am using a standard html img tag:
<img src="/images/imageName.jpg" alt="" title="Test"/>
Here is the path structure
c:\websites\NewSite
Under NewSite we have these folders
Images
UserControls
The usercontrol is in the UserControls folder. if I change the src to
src="../images/imageName.jpg". I can see the images int he UC, but not when I
drop it on an ASPX page int he root of the site. Also, I cannot see the
images, when on an ASPX page if I keep the scr the same as above. If I change
the scr to src="images/imageName.jpg" I can then see the images in the ASPX
page, but obviously not on the userControl. I have tried creating an ASP.Net
web application, just a website project, and have changed what I use for the
web server (meaning I have created a site on my 2003 server and have pointed
the app to look at the site. I have also tired using the built in web server
with VS2005).

If I use src="/images/imageName.jpg" the site builds OK and I can see the
images in the brwoser, but not in VS2005. I have tried using ~ in front of
the /, but no go there. I have read Scott's blog on how to get this to work,
but it didn’t work for me. Perhaps I am not setting up my environment
correctly. Thanks to all who may reply.

Daniel

May 9 '07 #1
1 1660
Sorry for the double post. My broswer crashed the first time and I didn't
think it made it. Again, sorry.

Daniel

"Daniel DiVita" wrote:
First, I am using VS2005 with windows XP. I am having an issue where I cannot
see the images in my usercontrols or the ASPX pages they are dropped onto
(the ASPX pages are on the root of the site for now). Indies my user control
I am using a standard html img tag:
<img src="/images/imageName.jpg" alt="" title="Test"/>
Here is the path structure
c:\websites\NewSite
Under NewSite we have these folders
Images
UserControls
The usercontrol is in the UserControls folder. if I change the src to
src="../images/imageName.jpg". I can see the images int he UC, but not when I
drop it on an ASPX page int he root of the site. Also, I cannot see the
images, when on an ASPX page if I keep the scr the same as above. If I change
the scr to src="images/imageName.jpg" I can then see the images in the ASPX
page, but obviously not on the userControl. I have tried creating an ASP.Net
web application, just a website project, and have changed what I use for the
web server (meaning I have created a site on my 2003 server and have pointed
the app to look at the site. I have also tired using the built in web server
with VS2005).

If I use src="/images/imageName.jpg" the site builds OK and I can see the
images in the brwoser, but not in VS2005. I have tried using ~ in front of
the /, but no go there. I have read Scott's blog on how to get this to work,
but it didn’t work for me. Perhaps I am not setting up my environment
correctly. Thanks to all who may reply.

Daniel
May 9 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Bozo Schmozo | last post by:
Greetings! I've searched groups.google.com already to see if I can determine if using PHP/MySQL (if needed) for a web site I wish to develop. As the subject indicated, it will be a content...
4
by: Anders K. Jacobsen [DK] | last post by:
Hi I have some common UserControls i want to share between to sites (on the same mashine but on diffrent virtual paths). right now i have on solution file with aprox 10 projects. 2 of these is...
1
by: Andrew Mercer | last post by:
Hi, I am new to ASP having previously been doing Java. I think User Controls are good but I have problem that I cannot solve - spent a long time searching the web without so far much...
12
by: Jon B | last post by:
Hi There! For some reasons, some images of my ASP.NET website are cannot be displayed in the browser (even tho they exists on the server). They are just normal JPG and PNG images and the website...
2
by: letsgetsilly | last post by:
I'm developing the external corporate website for my company in Visual Studio 2003 using html, css, and a user web control for the header/navigation. When I try to print any of the pages only the...
0
by: seigo | last post by:
Hello, I faced with the following problem. I have a PlaceHolder on a page and a few UserControls which have custom events, for instance: public delegate void SelectHandler(object sender,...
3
by: Nathan Sokalski | last post by:
I have my UserControls in a subdirectory called usercontrols. In the code for one of my UserControls I have the following: Public Property adimage() As String Get Return...
0
by: =?Utf-8?B?RGFuaWVsIERpVml0YQ==?= | last post by:
First, I am using VS2005 with windows XP. I am having an issue where I cannot see the images in my usercontrols or the ASPX pages they are dropped onto (the ASPX pages are on the root of the site...
6
by: vunet | last post by:
This may be a strange question from a non-technical person who asked me to make his whole site and images load all at once. I.e. the completely loaded site would show up immediately even with a big...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.