图片标签有问题 [英] have a problem in image tag

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

问题描述

嗨...
我在使用图像时遇到问题...
我在建筑物一侧看到了图像...
当我运行页面或项目时,我看不到图像...
取而代之的是我得到了没有图像符号的空图像...
您可以提供任何解决方案以在我的运行时获取图像吗?...

hi...
i am facing problem when i am using image...
i got the image at my building side...
when i run the page or project i can''t see the image...
instead of it i got the empty image with the no image symbol...
can u give any solution to get the image at my run time....

推荐答案

图像控件 [ ^ ]

您可能会发现它比image标签更易于使用,因为可以使用设计器对其进行配置.只需记住也可以将图像添加到项目中...

最好的问候
Espen Harlinn
Read up on the Image control[^]

You will probably find it easier to use than the image tag as it can be configured using the designer. Just remeber to add the image to the project too ...

Best regards
Espen Harlinn


尝试消除〜"并进行检查.如果您的开发项目文件夹下有APP_DATA,则无需输入〜".那应该可以解决您的问题.

您的代码将如下所示

Try Eliminating "~" and check. If you are having APP_DATA under your development project folder, No need to give "~". That should solve your problem.

Your code will be looking like this

<asp:image id="Image1" runat="server" imageurl="/App_Data/images.jpg" xmlns:asp="#unknown" />



我从Imageurl标记中删除了〜".



I Removed "~" in from Imageurl tag.


这篇关于图片标签有问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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