Search code examples
safariaspmenu

How can I get <asp:menu> working in Safari?


On the safari browser, the standard <asp:Menu> doesn't render well at all. How can this be fixed?


Solution

  • Thanks for the advice, it led me into the following solution;

    I created a file named "safari.browser" and placed it in the App_Browsers directory. The content of this file is shown below;

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

    As I understand it, this tells ASP.NET not to use the adaptor it would normally use to render the control content and instead use uplevel rendering.