How to detect tablet(any) requests?
<pre><code> if (Request.Browser.IsMobileDevice)
 {
     Response.Redirect("/mobile/Login.htm");`
 }
</code></pre>

<p>To detect mobiles but same times it detect Tablet like mobile, i need function that check if there Tablet or function that check the size of screen of the device.</p>

<p>Thank"s that work i used ScreenPixelsWidth  and ScreenPixelsHeight this is the code if any need it   </p>

<pre><code> int wight = Request.Browser.ScreenPixelsWidth;
                int height = Request.Browser.ScreenPixelsHeight;

                if (Request.Browser.IsMobileDevice &amp;&amp; wight &lt; 720 &amp;&amp; height&lt;1280)
            {
               Response.Redirect("/mobile/Login.htm");
            }
</code></pre>
