473,587 Members | 2,463 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Broken links to graphics

Thanks in advance for the help and let me know if this should be posted to
another MSDN.

I am developing a web-based application in VS.NET2003 using VB. When I
insert a graphic into a project page it shows just fine in design mode.
However, when I run the app in debug or directly from a browser all the
graphic links in the app show they are broken. Checking the properties shows
that they are pointing to the correct folder. I'm not sure if this is a
directory security issue or a development environment issues. Any help would
be appreciated.
--
John at Free Design
Jul 21 '05 #1
18 1662
John,

When you point them directly to your hard disk that will happens, you have
to point them virtually to your webfolder that holds the reference to that
actual folder.

Can that be the problem?

Cor
Jul 21 '05 #2
Cor,
Thanks. I also figured that was the problem and checked it, but as far as I
can tell it is not. Code reads:
<asp:Image id="Image1" runat="server" ImageUrl= "../images/fleet10.jpg">
</asp:Image>
Note the "../images" part. This has always seemed to work in the past but
it decided to stop working about a week ago. Deleting and re-entering the
image has not worked. Creating a new project and importing the content from
this project has not worked. Existing projects where it worked have also
stopped (without changes to the project). Cursing has also not worked:)
I also have pop-up help windows in the apps that are hooked to an image.
The links can't "see" the "../help" folder either. Very curious!!
John Masciantoni

"Cor Ligthert" wrote:
John,

When you point them directly to your hard disk that will happens, you have
to point them virtually to your webfolder that holds the reference to that
actual folder.

Can that be the problem?

Cor

Jul 21 '05 #3
Since you are using a server control <asp:Image>, try using '~'.

<asp:Image id="Image1" runat="server" ImageUrl=
"~/images/fleet10.jpg"></asp:Image>

HTH,
Greg

"John at Free Design" <Jo************ **@discussions. microsoft.com> wrote in
message news:AA******** *************** ***********@mic rosoft.com...
Cor,
Thanks. I also figured that was the problem and checked it, but as far as
I
can tell it is not. Code reads:
<asp:Image id="Image1" runat="server" ImageUrl= "../images/fleet10.jpg">
</asp:Image>
Note the "../images" part. This has always seemed to work in the past but
it decided to stop working about a week ago. Deleting and re-entering the
image has not worked. Creating a new project and importing the content
from
this project has not worked. Existing projects where it worked have also
stopped (without changes to the project). Cursing has also not worked:)
I also have pop-up help windows in the apps that are hooked to an image.
The links can't "see" the "../help" folder either. Very curious!!
John Masciantoni

"Cor Ligthert" wrote:
John,

When you point them directly to your hard disk that will happens, you
have
to point them virtually to your webfolder that holds the reference to
that
actual folder.

Can that be the problem?

Cor

Jul 21 '05 #4
Greg,
Thanks. Tried it but it did not solve the issue. I think the core of this
is that it worked as is a week or so ago and now will not. I can't think of
and intentional changes I've made on the dev box that would impact this. In
short, response redirects to pages in subfolders of the project are found.
HTML links, however, are not.

"Greg Burns" wrote:
Since you are using a server control <asp:Image>, try using '~'.

<asp:Image id="Image1" runat="server" ImageUrl=
"~/images/fleet10.jpg"></asp:Image>

HTH,
Greg

"John at Free Design" <Jo************ **@discussions. microsoft.com> wrote in
message news:AA******** *************** ***********@mic rosoft.com...
Cor,
Thanks. I also figured that was the problem and checked it, but as far as
I
can tell it is not. Code reads:
<asp:Image id="Image1" runat="server" ImageUrl= "../images/fleet10.jpg">
</asp:Image>
Note the "../images" part. This has always seemed to work in the past but
it decided to stop working about a week ago. Deleting and re-entering the
image has not worked. Creating a new project and importing the content
from
this project has not worked. Existing projects where it worked have also
stopped (without changes to the project). Cursing has also not worked:)
I also have pop-up help windows in the apps that are hooked to an image.
The links can't "see" the "../help" folder either. Very curious!!
John Masciantoni

"Cor Ligthert" wrote:
John,

When you point them directly to your hard disk that will happens, you
have
to point them virtually to your webfolder that holds the reference to
that
actual folder.

Can that be the problem?

Cor


Jul 21 '05 #5
John,

For me this sounds as a security isue, you are sure you did not change
something in the IIS settings or loaded some extra security sofware
meanwhile or did something else to security settings?

Cor

"John at Free Design" <Jo************ **@discussions. microsoft.com>
....
Cor,
Thanks. I also figured that was the problem and checked it, but as far as
I
can tell it is not. Code reads:
<asp:Image id="Image1" runat="server" ImageUrl= "../images/fleet10.jpg">
</asp:Image>
Note the "../images" part. This has always seemed to work in the past but
it decided to stop working about a week ago. Deleting and re-entering the
image has not worked. Creating a new project and importing the content
from
this project has not worked. Existing projects where it worked have also
stopped (without changes to the project). Cursing has also not worked:)
I also have pop-up help windows in the apps that are hooked to an image.
The links can't "see" the "../help" folder either. Very curious!!
John Masciantoni

"Cor Ligthert" wrote:
John,

When you point them directly to your hard disk that will happens, you
have
to point them virtually to your webfolder that holds the reference to
that
actual folder.

Can that be the problem?

Cor

Jul 21 '05 #6
Just throwing this out there...

You have not disabled images in IE options have you? (Of course you would
see this while surfing the interent also).

Is the images folder under your virtual directory?

something like:

c:\inetpub\wwwr oot\<virdir>\im ages

Greg

"John at Free Design" <Jo************ **@discussions. microsoft.com> wrote in
message news:F3******** *************** ***********@mic rosoft.com...
Greg,
Thanks. Tried it but it did not solve the issue. I think the core of
this
is that it worked as is a week or so ago and now will not. I can't think
of
and intentional changes I've made on the dev box that would impact this.
In
short, response redirects to pages in subfolders of the project are found.
HTML links, however, are not.

"Greg Burns" wrote:
Since you are using a server control <asp:Image>, try using '~'.

<asp:Image id="Image1" runat="server" ImageUrl=
"~/images/fleet10.jpg"></asp:Image>

HTH,
Greg

"John at Free Design" <Jo************ **@discussions. microsoft.com> wrote
in
message news:AA******** *************** ***********@mic rosoft.com...
> Cor,
> Thanks. I also figured that was the problem and checked it, but as far
> as
> I
> can tell it is not. Code reads:
> <asp:Image id="Image1" runat="server" ImageUrl=
> "../images/fleet10.jpg">
> </asp:Image>
> Note the "../images" part. This has always seemed to work in the past
> but
> it decided to stop working about a week ago. Deleting and re-entering
> the
> image has not worked. Creating a new project and importing the content
> from
> this project has not worked. Existing projects where it worked have
> also
> stopped (without changes to the project). Cursing has also not
> worked:)
> I also have pop-up help windows in the apps that are hooked to an
> image.
> The links can't "see" the "../help" folder either. Very curious!!
> John Masciantoni
>
> "Cor Ligthert" wrote:
>
>> John,
>>
>> When you point them directly to your hard disk that will happens, you
>> have
>> to point them virtually to your webfolder that holds the reference to
>> that
>> actual folder.
>>
>> Can that be the problem?
>>
>> Cor
>>
>>
>>


Jul 21 '05 #7
You may want to also trying deleting your internet cache from within IE.

Greg

"Greg Burns" <greg_burns@DON T_SPAM_ME_hotma il.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Just throwing this out there...

You have not disabled images in IE options have you? (Of course you would
see this while surfing the interent also).

Is the images folder under your virtual directory?

something like:

c:\inetpub\wwwr oot\<virdir>\im ages

Greg

"John at Free Design" <Jo************ **@discussions. microsoft.com> wrote
in message news:F3******** *************** ***********@mic rosoft.com...
Greg,
Thanks. Tried it but it did not solve the issue. I think the core of
this
is that it worked as is a week or so ago and now will not. I can't think
of
and intentional changes I've made on the dev box that would impact this.
In
short, response redirects to pages in subfolders of the project are
found.
HTML links, however, are not.

"Greg Burns" wrote:
Since you are using a server control <asp:Image>, try using '~'.

<asp:Image id="Image1" runat="server" ImageUrl=
"~/images/fleet10.jpg"></asp:Image>

HTH,
Greg

"John at Free Design" <Jo************ **@discussions. microsoft.com> wrote
in
message news:AA******** *************** ***********@mic rosoft.com...
> Cor,
> Thanks. I also figured that was the problem and checked it, but as
> far as
> I
> can tell it is not. Code reads:
> <asp:Image id="Image1" runat="server" ImageUrl=
> "../images/fleet10.jpg">
> </asp:Image>
> Note the "../images" part. This has always seemed to work in the past
> but
> it decided to stop working about a week ago. Deleting and re-entering
> the
> image has not worked. Creating a new project and importing the
> content
> from
> this project has not worked. Existing projects where it worked have
> also
> stopped (without changes to the project). Cursing has also not
> worked:)
> I also have pop-up help windows in the apps that are hooked to an
> image.
> The links can't "see" the "../help" folder either. Very curious!!
> John Masciantoni
>
> "Cor Ligthert" wrote:
>
>> John,
>>
>> When you point them directly to your hard disk that will happens, you
>> have
>> to point them virtually to your webfolder that holds the reference to
>> that
>> actual folder.
>>
>> Can that be the problem?
>>
>> Cor
>>
>>
>>


Jul 21 '05 #8
I think Windows Update broke it.

I have a similar problem with a dialog shown from a web page. It's all html
and script though, no ASP.

Follow the link to my Nothing page and click the underscored here for the
premium version. That dialog used to show an icon and still does when I load
it from my hard drive.

I even tried updating the page so that it loads the image via script exactly
the same way as all the images on my other pages do, but no joy, and I know
the script works since I use it on my other pages.

OnBlur seems to be broken aswell. If the dialog loses focus then the buttons
will no longer respond to clicks, but I'm not 100% sure that that worked
before. I originally used ShowDialog(), but Netscape doesn't like that.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"John at Free Design" <Jo************ **@discussions. microsoft.com> wrote in
message news:F3******** *************** ***********@mic rosoft.com...
Greg,
Thanks. Tried it but it did not solve the issue. I think the core of
this
is that it worked as is a week or so ago and now will not. I can't think
of
and intentional changes I've made on the dev box that would impact this.
In
short, response redirects to pages in subfolders of the project are found.
HTML links, however, are not.

"Greg Burns" wrote:
Since you are using a server control <asp:Image>, try using '~'.

<asp:Image id="Image1" runat="server" ImageUrl=
"~/images/fleet10.jpg"></asp:Image>

HTH,
Greg

"John at Free Design" <Jo************ **@discussions. microsoft.com> wrote
in
message news:AA******** *************** ***********@mic rosoft.com...
> Cor,
> Thanks. I also figured that was the problem and checked it, but as far
> as
> I
> can tell it is not. Code reads:
> <asp:Image id="Image1" runat="server" ImageUrl=
> "../images/fleet10.jpg">
> </asp:Image>
> Note the "../images" part. This has always seemed to work in the past
> but
> it decided to stop working about a week ago. Deleting and re-entering
> the
> image has not worked. Creating a new project and importing the content
> from
> this project has not worked. Existing projects where it worked have
> also
> stopped (without changes to the project). Cursing has also not
> worked:)
> I also have pop-up help windows in the apps that are hooked to an
> image.
> The links can't "see" the "../help" folder either. Very curious!!
> John Masciantoni
>
> "Cor Ligthert" wrote:
>
>> John,
>>
>> When you point them directly to your hard disk that will happens, you
>> have
>> to point them virtually to your webfolder that holds the reference to
>> that
>> actual folder.
>>
>> Can that be the problem?
>>
>> Cor
>>
>>
>>


Jul 21 '05 #9
I noticed in the status bar of your dialog box the address has a different
domain. Is that expected?

Greg

"Mick Doherty"
<EX***********@ AND.REMOVE.SQUA REBRACKETS.[mdaudi100#ntlwo rld.com]> wrote in
message news:uN******** ******@tk2msftn gp13.phx.gbl...
I think Windows Update broke it.

I have a similar problem with a dialog shown from a web page. It's all
html and script though, no ASP.

Follow the link to my Nothing page and click the underscored here for the
premium version. That dialog used to show an icon and still does when I
load it from my hard drive.

I even tried updating the page so that it loads the image via script
exactly the same way as all the images on my other pages do, but no joy,
and I know the script works since I use it on my other pages.

OnBlur seems to be broken aswell. If the dialog loses focus then the
buttons will no longer respond to clicks, but I'm not 100% sure that that
worked before. I originally used ShowDialog(), but Netscape doesn't like
that.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"John at Free Design" <Jo************ **@discussions. microsoft.com> wrote
in message news:F3******** *************** ***********@mic rosoft.com...
Greg,
Thanks. Tried it but it did not solve the issue. I think the core of
this
is that it worked as is a week or so ago and now will not. I can't think
of
and intentional changes I've made on the dev box that would impact this.
In
short, response redirects to pages in subfolders of the project are
found.
HTML links, however, are not.

"Greg Burns" wrote:
Since you are using a server control <asp:Image>, try using '~'.

<asp:Image id="Image1" runat="server" ImageUrl=
"~/images/fleet10.jpg"></asp:Image>

HTH,
Greg

"John at Free Design" <Jo************ **@discussions. microsoft.com> wrote
in
message news:AA******** *************** ***********@mic rosoft.com...
> Cor,
> Thanks. I also figured that was the problem and checked it, but as
> far as
> I
> can tell it is not. Code reads:
> <asp:Image id="Image1" runat="server" ImageUrl=
> "../images/fleet10.jpg">
> </asp:Image>
> Note the "../images" part. This has always seemed to work in the past
> but
> it decided to stop working about a week ago. Deleting and re-entering
> the
> image has not worked. Creating a new project and importing the
> content
> from
> this project has not worked. Existing projects where it worked have
> also
> stopped (without changes to the project). Cursing has also not
> worked:)
> I also have pop-up help windows in the apps that are hooked to an
> image.
> The links can't "see" the "../help" folder either. Very curious!!
> John Masciantoni
>
> "Cor Ligthert" wrote:
>
>> John,
>>
>> When you point them directly to your hard disk that will happens, you
>> have
>> to point them virtually to your webfolder that holds the reference to
>> that
>> actual folder.
>>
>> Can that be the problem?
>>
>> Cor
>>
>>
>>


Jul 21 '05 #10

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

Similar topics

19
1137
by: John at Free Design | last post by:
Thanks in advance for the help and let me know if this should be posted to another MSDN. I am developing a web-based application in VS.NET2003 using VB. When I insert a graphic into a project page it shows just fine in design mode. However, when I run the app in debug or directly from a browser all the graphic links in the app show they are broken. Checking the properties shows that they are pointing to the correct folder. I'm not...
28
3189
by: Craig Cockburn | last post by:
I have a tool which tells me the number of times that visitors attempt to access a link from my site to an external site and what the response code received was. In the event of the remote site returning an error code, they are not sent to the remote site - why bother, it wouldn't work! Since I have over 1000 external links, this allows me to locate the broken links that people see the most often and fix those first. Conventional link...
4
2467
by: Corey Walker | last post by:
Hello: I am a webmaster for a non-profit organization. I do know some HTML, but I'm by no means an expert. Recently, many pages on our site were redesigned by a professional web designer, who volunteered his time for a one time improvement. Now, I'm trying to add a new page to our site, and make it look consistent by removing and replacing the text in an existing page. However, in the one page the links at the bottom page are centered...
0
8349
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...
1
7978
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
5722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5395
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
3845
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...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2364
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
1
1455
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1192
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.