[dba-VB] Assemblies needed for Chrome to display ASP menu. Solved

Gustav Brock Gustav at cactus.dk
Mon Jan 12 15:56:47 CST 2009


Hi all

After much search and learn I've found out that to use the browserCaps in web.config for this purpose is outdated.
This method, however, does work

  http://forums.asp.net/p/1369765/2860698.aspx#2860698 

It describes how to add a chrome.browsers file in App_Browsers

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

Rendering of the Asp.NET menu is still not top notch but much better.

If this adapter controlType is a bit strange for you, I located this very good explanation with lots of code and examples:

  http://www.asp.net/CSSAdapters/WalkThru/WalkThrough.aspx 

/gustav

>>> Gustav at cactus.dk 08-01-2009 16:33 >>>
Hi all

I've added the section below trying to have my menu displayed correctly in the Chrome browser.
However, VS2008 complains:

Message      1      Could not find schema information for the element 'case'.      
Message      2      Could not find schema information for the attribute 'match'.      

The assemblies listed below are present but clearly one or more is missing. Which please?

<browserCaps>
      <case match="Chrome/(?'version'(?'major'\d+)(?'minor'\.\d+)\.\d+.\d+)\sSafari/\d+\.\d+">
        browser=Chrome 
        version=${version} 
        majorversion=${major} 
        minorversion=${minor} 
      </case>
</browserCaps>
 
---
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
---

/gustav






More information about the dba-VB mailing list