图形链接断开 [英] Broken links to graphics

查看:62
本文介绍了图形链接断开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

预先感谢您的帮助,如果有这个问题请告诉我

另一个MSDN。


我正在开发一个基于Web的应用程序在VS.NET2003中使用VB。当我将
插入项目页面时,它在设计模式下显示得很好。

然而,当我在调试中运行应用程序或直接从浏览器运行所有

应用程序中的图形链接显示它们已损坏。检查属性显示

它们指向正确的文件夹。我不确定这是否是一个

目录安全问题或开发环境问题。任何帮助都会被赞赏。

-

John在Free Design

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

推荐答案

John,


当你将它们直接指向你将要发生的硬盘时,你需要

将它们虚拟指向你的保存对该

实际文件夹的引用的webfolder。


这可能是问题吗?


Cor
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


Cor,

谢谢。我也认为这是问题并检查了它,但就我而言,
可以说它不是。代码如下:

< asp:Image id =" Image1" RUNAT = QUOT;服务器" ImageUrl =" ../ images / fleet10.jpg">

< / asp:图片>

请注意../ images部分。这似乎总是在过去工作,但它决定在一周前停止工作。删除并重新输入

图像无效。创建一个新项目并从

导入内容这个项目没有用。它工作的现有项目也停止了b
(没有更改项目)。诅咒也没有奏效:)

我还在连接到图像的应用程序中有弹出式帮助窗口。

链接不能看到 ; ../ help文件夹。非常好奇!!

John Masciantoni


" Cor Ligthert"写道:
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,

当你将它们直接指向你将要发生的硬盘时,你可以将它们虚拟地指向你的webfolder那个
实际文件夹的引用。

这可能是问题吗?

Cor
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



由于您使用的是服务器控件< asp:Image>,请尝试使用''〜''。


< asp:Image id = " IMAGE1" RUNAT = QUOT;服务器" ImageUrl =

"〜/ images / fleet10.jpg">< / asp:Image>


HTH,

格雷格


John at Free Design <乔************** @ discussions.microsoft.com>写在

消息新闻:AA ********************************** @ microsof t.com ...
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**********************************@microsof t.com...
Cor,
谢谢。我也认为这是问题并检查了它,但至于
我可以告诉它不是。代码如下:
< asp:Image id =" Image1" RUNAT = QUOT;服务器" ImageUrl =" ../ images / fleet10.jpg">
< / asp:Image>
请注意../ images"部分。这似乎总是在过去工作,但它决定在一周前停止工作。删除并重新输入
图像无效。创建一个新项目并从
导入内容
这个项目没有用。它工作的现有项目也已停止(不改变项目)。诅咒也没有奏效:)
我也在应用程序中弹出了帮助窗口,这些应用程序连接到图像。
链接不能看到 ../ help文件夹。非常好奇!!
John Masciantoni

Cor Ligthert写道:
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,

当你直接将它们指向你的硬盘时,你就会指出它们虚拟到您的web文件夹,其中包含对
实际文件夹的引用。

这可能是问题吗?

Cor
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



这篇关于图形链接断开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆