找不到资源-错误 [英] The resource cannot be found--Error

查看:116
本文介绍了找不到资源-错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



以下是列表项的HTML标记,iam使用此标记来进行菜单.

Hi,

Below is the Html markup for list item and iam using this for menus.

<li class="first"><a href="../Guest/GuestHome.aspx" accesskey="1" title="">Home</a></li>
                <li><a href="../Guest/Client/AddClient.aspx" accesskey="2" title="">Add Client</a></li>
                <li><a href="../Guest/Client/ViewClient.aspx" accesskey="3" title="">View Client</a></li>
                <li><a href="../Guest/Client/ViewInteraction.aspx" accesskey="4" title="">View Notes</a></li>



当我第一次运行该网站时,我可以访问该页面.
第一次使用示例时,当我单击主页"时,它将直接转到主页.
下次点击相同的链接时出现错误

找不到资源
我给出的href路径是"../Guest/GuestHome.aspx"正确的路径.
错误消息我得到的是

请求的URL:/来宾/来宾/客户端/AddClient.aspx

请帮助解决此问题.

谢谢



when i run the website on first time i am able to access the page.
Example first time when i click on Home it will direct to home page.
next time when click on the same link getting error as

The resource cannot be found
href path what i have given is "../Guest/GuestHome.aspx" correct one.
Error msg what i get is

Requested URL:/Guest/Guest/Client/AddClient.aspx

Please help to solve this issue.

Thanks

推荐答案

请求的URL:/来宾/来宾/Client/AddClient.aspx
显然,这是定义的源路径的问题.形成的相对路径不正确,导致找不到资源"错误.

使用以下提示查找/设置URL: CP:解析路径多文件夹网站 [ ^ ]
Requested URL:/Guest/Guest/Client/AddClient.aspx
Clearly, this is an issue of source path defined. The relative path formed is incorrect leading to ''Resource not found'' error.

Use the following tip for finding/setting the URL: CP: Resolving Paths in a Multi-Folder WebSite[^]


这篇关于找不到资源-错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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