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 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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.
|
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:
|
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!!!
|
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...
| |
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)
|
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)
|
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
|
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...
|
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...
|
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,...
| |
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...
|
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...
|
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();...
|
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...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |