Disable Mobile View in SharePoint 2010

Put the following code into <web.config> insection

<browserCaps> 
<result type=”System.Web.Mobile.MobileCapabilities, System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”/>
<filter>isMobileDevice=false</filter> 
</browserCaps>

Or modify the file “compat.browser” under folder “App_Browsers” inside your web application’s root directory.  Set the value of isMobileDevice to false.

  <browser id=”iPhoneSafari” parentID=”AppleSafari”>
        <identification>
            <userAgent match=”iPhone” />
            <userAgent match=”Mobile” />
        </identification>
        <capabilities>
            <capability name=”isMobileDevice”                    value=”false” />
            <capability name=”canInitiateVoiceCall”              value=”true” />
            <capability name=”optimumPageWeight”                 value=”1500″ />
            <capability name=”requiresViewportMetaTag”           value=”true” />
            <capability name=”supportsTouchScreen”               value=”true” />
            <capability name=”telephoneNumberDetectionDisabled”  value=”true” />
        </capabilities>

 

Xin

Leave a Reply

Your email address will not be published. Required fields are marked *