I’m using a C# asp.net website.
How can I check if the user using ipad or iphone? How can I check the platform?
For example, if the user enter the website from ipad I’d like to display”Hello ipad user”
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For iPad user agent is something like:
and for iPhone its somthing like:
Any many more depending on the version and wheather its iPhone 3 or 4
so better just do a substring search for iPhone and iPad as suggested by another answer