I would like to know how can I detect that my web application is running trough an iPad device, so 开发者_如何学JAVAI can do some code for iPad devices on my web application.
I'm developing a web application in .NET with C#, SQL Server and Visual FoxPro as databases.
The iPhone and the iPad both have distinct user agents.
An example would be
(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10
You can find more information and some sample code in How to Identify an Apple iPhone, iPod or iPad Visitor to Your Website.
精彩评论