如何在谷歌浏览器中显示菜单 [英] how to show menu in google chrome

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

问题描述

我正在使用站点地图在页面上显示菜单(导航)..
组件是
-system.web.UI.webcontrol.menu
datasourceID = SiteMapDataSource1
自动格式=专业
-system.web.UI.webcontrol.SiteMapDataSource
-文件"Web.sitemap"包含:

I''m using site map to show menu (navigation) on my page..
component is
- system.web.UI.webcontrol.menu
datasourceID = SiteMapDataSource1
auto format = professional
- system.web.UI.webcontrol.SiteMapDataSource
- file "Web.sitemap" contain :

<siteMapNode>
    <siteMapNode title="Home" url="Default.aspx" description="Go to homepage">
    </siteMapNode>
    <siteMapNode title="User" url="" description="User menu action">
      <siteMapNode title="Sign Up" url="Register.aspx" description="Create new user"/>
      <siteMapNode title="Log in"  url="Login.aspx"    description="login user"/>
    </siteMapNode>
  </siteMapNode> 



似乎可以在IE和Firefox上使用..但是使用谷歌浏览器则无效(点击时菜单消失)
有没有人以前有过同样的问题..?还是只有我



it seems work on IE, Firefox.. but using google chrome it didn''t work (menu disapear when click)
did anyone have same problem before..? or it''s only me

is there another control to using as menu in ASP.net?

推荐答案

在页面加载事件中放置以下代码.这可能会有所帮助.

Put following code in your page load event. That might help.

if (Request.UserAgent.IndexOf("AppleWebKit") > 0)
{
Request.Browser.Adapters.Clear();
}


这篇关于如何在谷歌浏览器中显示菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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