Last post Oct 28, 2012 12:31 PM by roopeshreddy
Oct 26, 2012 02:41 PM|jrahma|LINK
I am using this code to determine if the device is mobile:
<asp:TableCell VerticalAlign="Top">is Mobile</asp:TableCell>
<asp:TableCell VerticalAlign="Top"><% Response.Write(Request.Browser.IsMobileDevice); %></asp:TableCell>
but I always get IsMobile = False when using my Samsung Galaxy SII or S3!
why is that? can you try it
here from mobile and let me know if you'll get IsMobile = True?
Oct 28, 2012 12:31 PM|roopeshreddy|LINK
Request.Browser.IsMobileDevice will not work properly, since browser definition files are not available for the latest devices!
You may have to try with UserAgent string!
Hope it helps u...