Safari 7.1中的ASPMenu在SharePoint 2010中无法正确呈现 [英] ASPMenu in Safari 7.1 Not Rendering Properly in SharePoint 2010

查看:117
本文介绍了Safari 7.1中的ASPMenu在SharePoint 2010中无法正确呈现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Mac和iOS8上最新版本的Safari 7.1是否遇到其他问题,该问题打破了SharePoint 2010中的ASPMenu控件? ASPMenu之前可以正常工作,但是现在更新后,它决定错误地呈现内容.我尝试设置Page.ClientTarget ="uplevel",并修改compat.browser文件以包含Safari适配器"System.Web.UI.WebControls.Menu",但是这两个选项都无法帮助解决该问题.

Has anyone else encountered an issue with the newest release of Safari 7.1 on Mac and iOS8 that breaks an ASPMenu control within SharePoint 2010? The ASPMenu worked fine before hand, but now after the update it has decided to render the contents incorrectly. I've tried setting the Page.ClientTarget = "uplevel", as well as modify the compat.browser file to include the adapter "System.Web.UI.WebControls.Menu" for Safari, but neither option is helping fix the issue.

任何人都可以帮忙吗?在Safari更新之前,该菜单可以正常工作.谢谢!

Can anyone help? The menu worked completely fine before the Safari update. Thanks!

推荐答案

最终弄清了问题所在.过去,服务器在Safari中看到的浏览器ID是"Safar1Plus".这与下面列出的compat.browser文件中的条目相关:

Ended up figuring out what the issue was. In the past, the browser ID that the server would see for Safari was "Safar1Plus". This correlates with the entry in the compat.browser file as listed:

<browser id="Safari2" parentID="Safari1Plus">
    <controlAdapters>
        <adapter controlType="System.Web.UI.WebControls.Menu" adapterType="" />
    </controlAdapters>
</browser>

Safari 7.1不再与此浏览器ID关联,现在已更新为"Safari60".我通过在自定义SharePoint页面上的javascript中执行一个简单的命令发现了这一点:

Safari 7.1 no longer ties to the this browser ID, and has now been updated to "Safari60". I found this out by doing a simple command in javascript on my custom SharePoint page:

alert("<%=Request.Browser.Id %>");

这告诉我服务器看到的新浏览器ID.它现在报告为"Safari60".然后,我返回到Web应用程序下的compat.browser文件,并添加了新的浏览器并引用了新的浏览器ID:

This told me the new browser ID that the server sees. It reported back now as "Safari60". I then went back into the compat.browser file under my web application and added a new browser and referenced the new browser ID:

<browser refID="Safari60">
    <controlAdapters>
        <adapter controlType="System.Web.UI.WebControls.Menu" adapterType="" />
    </controlAdapters>
</browser>

一旦我用新添加的内容保存了compat.browser文件,Safari 7.1现在就很高兴并且像以前一样呈现ASPMenu.希望有帮助!

Once I saved the compat.browser file with this new addition, Safari 7.1 was now happy and rendering the ASPMenu like it has in the past. Hopefully that helps!

SP浏览器定义文件的默认位置为"C:\ Inetpub \ wwwroot \ wss \ VirtualDirectories \\ App_Browsers \ compat.browser"

The default location of the SP browser definition file is at "C:\Inetpub\wwwroot\wss\VirtualDirectories\\App_Browsers\compat.browser"

这篇关于Safari 7.1中的ASPMenu在SharePoint 2010中无法正确呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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