For my latest Plan C i need to hide a couple of spans from mobile browsers as they dont lend themselves well to low res display.
The inbuilt mobile browser detection in .NET doesnt work with modern stuff such as the iPhone so has anyone got a decent function they use to detect these? Maybe some sort of inStr as shown in http://www.codeproject.com/KB/aspnet/mobiledetect.aspx - but that particular list looks too big and a candidate for misidentification? Only interested in the main ones like iPhone/Blackberry but dont know what others are popular.
Or is it just easier to detect screen res and act according to that instead?
Ta
The inbuilt mobile browser detection in .NET doesnt work with modern stuff such as the iPhone so has anyone got a decent function they use to detect these? Maybe some sort of inStr as shown in http://www.codeproject.com/KB/aspnet/mobiledetect.aspx - but that particular list looks too big and a candidate for misidentification? Only interested in the main ones like iPhone/Blackberry but dont know what others are popular.
Or is it just easier to detect screen res and act according to that instead?
Ta
Comment