title: WURFL for Mobiles
body: <p>I am using below code in Application_Start event of Global.asax in ASP.NET MVC. WURFL for detection of Mobiles. Below code works for restriction of tables and ipads but not for Samsung Galaxy Tab greater than 10 inches. </p>
  
  <pre><code>     DisplayModeProvider.Instance.Modes.Insert(0, new DefaultDisplayMode()
       {
       ContextCondition = (context =&gt; context.GetOverriddenUserAgent().IndexOf("tablet",  StringComparison.OrdinalIgnoreCase) &gt;= 0
   || context.GetOverriddenUserAgent().IndexOf("ipad", StringComparison.OrdinalIgnoreCase) &gt;= 0)
       });
  </code></pre>