473,807 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\New Site
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 1687
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\New Site
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
3890
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 based site with videos - NO, it's not a porn site though. I thought that I'd list the key requirements/specifications for my web site below and was wondering if some of you'd be so kind as to provide your thoughts on each and comment on them with...
4
1650
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 webprojetcs wich need to shere some common userControls. Optimally i want a class libarary project wich contains the controls so i could import the DLL and use the controls. But that of course doesnt work.
1
1196
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 success. The problem:
12
1648
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 has been working fine before. I tried re-upload the original files to the remote server but still no solution. Any ideas? Thank you all in advance!!!
2
3045
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 header image (an <img> located in the Web User control) and the footer (also <img>) will print, but none of the text, graphics, background colors, or background images that are included. My page is a liquid 3 column + 1 header + 1 footer CSS...
0
1556
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, SelectEventArgs e); public event SelectHandler OnSelect; protected void Page_Load(object sender, EventArgs e)
3
1403
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 lnkAdvertisement.ImageUrl End Get Set(ByVal value As String) Response.Write(Me.Page.ResolveClientUrl(value) & "<br/>" & ControlChars.NewLine)
0
1228
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 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
6
4015
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 background image. I explained that images are taking longer to load because of the size than anything else but this person insists on the request. Am I missing something here or there is actually a way to load the whole website all at once other...
0
9720
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9599
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3854
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.