
Spent some time the other day trying to sort out in AP.Net how to detect a Mobile as apposed to a desktop.
There where lots of code about that went about it a lot of different ways that I thought where a bit long winded then I saw this is my trawling and it works a treat.
Dim mobile As Boolean
With Request.Browser
mobile = .IsMobileDevice
End With
Mobile being true or false neat and simple.
No comments:
Post a Comment