Use ASP code A if ipad is being used, else display code B
Posted on 2012-04-04
I have an ASP/VB page and I have a form in that page, the form contains an html editor which works fine in computers but for some reason is very erratic when using ipad.
We want to display the code (A) with the form object HTML editor if user is NOT using an ipad, and display code (B) with the form element being a simple text field is user IS using an ipad, something like:
<% if ipad being used %>
Code for HTML editor here
<% if ipad NOT being used %>
Code for text field here
I don't know how to detect what the user is using to browse and then how to do the IF statements to display one or the other object.
Hope that makes sense.