Quantcast
Viewing latest article 1
Browse Latest Browse All 3

Answer by viperguynaz for displaymode for mobile with desktop view for ipad in asp.net mvc 4

This is how we are directing tablets to the desktop view:

    DisplayModeProvider.Instance.Modes.Insert(0, new DefaultDisplayMode("")    {        ContextCondition = (context => DeviceConfig.GetDeviceType(context.GetOverriddenUserAgent()) == "tablet")    });

rather than creating uniqiue layouts & views for tablets, we just detect the tablets and set the DisplayModeId = "", which is the default (desktop) view.


Viewing latest article 1
Browse Latest Browse All 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>