如何处理菜单问题 [英] how to handel a menu problem

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

问题描述

我有一个带有菜单的母版页.当我单击默认页面上的链接时,它工作正常,但是当我单击母版页面上的链接时,它给我一个错误,因为它会自动更改链接

[http://localhost:54246/Pages/Default.aspx]

如果链接是这样,我将访问该页面

[http://localhost:54246/Default.aspx]

请帮助我

i have a master page with a menu. when i click on the link from default page it work fine but when i click a link from master page it give me an error because it automatically change the link

[http://localhost:54246/Pages/Default.aspx]

i will access the page if the link is like

[http://localhost:54246/Default.aspx]

please help me

推荐答案

如F-ES所述:链接将相对于打开的链接.您可以使用"/"指定root:

As F-ES states: The links will be relative to the link that''s open. You can specify root with a "/":

<ul>
<li class='active'><a href="/Default.aspx"><span>User Information</span></li>
<li class='has-sub'><a href="#"><span>Managment</span>
<ul>
<li><span>Order</span></li>
<li class='last'><span>City</span></li>
</ul></li>
</ul>


这篇关于如何处理菜单问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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