开发者

Detect my web application is running on an iPad device

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜