母版页图像未以Web形式显示 [英] Master page image is not displaying in web form

查看:55
本文介绍了母版页图像未以Web形式显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含图像集的母版页.在项目根目录中使用Web表单时,图像无法正确显示,但是当我创建一个新文件夹并在那里时,我正在使用带有母版页的新Web表单.在这种情况下,我遇到了问题.图像未显示.我不知道问题是什么.

任何人都可以帮助我.....谢谢你...

解决方案

要做的第一件事就是向我们展示其中一个图像标签.显示不正确.我的直觉是您必须根据页面位置更新图像源值以包括正确的相对路径,但是如果没有看到至少一个标签,就无法完全验证其正确性.


听起来像只能是相对路径问题.我建议您使用此技巧并在设置图像源之前正确解析路径:母版页中的URL


I have a master page with set of images. While taking the web form in root of the project images are not displaying correctly, but when I created a new folder and there I am taking the new web form with master page. In this case i am getting problem. Images are not displaying. I don''t know what the problem is.

Can any one help me.....I am thankful to you...

解决方案

The first thing to do is show us one of the image tags that are not displaying correctly. My hunch is that you have to update the image source value to include the correct relative path based on the page location, but I can''t verify that completely without seeing at least one of the tags.


Sounds like it has to be relative path issue only. I would suggest you to use this Tip and resolve the path correctly before setting the image source: Resolving Paths in a Multi-Folder WebSite[^]


Hope the following link will help you out:
URLs in Master Pages


这篇关于母版页图像未以Web形式显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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