Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

redirect based on a Tablet device

Posted on 2011-09-12
2
Medium Priority
?
213 Views
Last Modified: 2012-05-12
Good Day Experts.
We have a decent mobile version of our main site and need to include code to handle tablet detections and redirection in a different way to a Phone.
I’ve read articles on using screen resolution, etc but that it not without issue, so I was hoping that somehow had resolved this issue already and would be willing to share the solution.
To recap. Detect and redirect based on a Tablet device.
We're using .net 4.0
Any ideas?
0
Comment
Question by:QuestionManA
2 Comments
 
LVL 17

Accepted Solution

by:
OriNetworks earned 2000 total points
ID: 36522679
There are two methods

1. Checking the user-agent string which may changed as new devices come along.
2. Adapting your site according to client capabilities such as checking screen resolution.

WURFL is a project to look at - http://wurfl.sourceforge.net/
or a simple google search can give you results like http://stackoverflow.com/questions/5341637/how-do-detect-android-tablets-in-general-useragent
0
 
LVL 2

Author Comment

by:QuestionManA
ID: 36523305
http://wurfl.sourceforge.net/ could work.
I'll take a look.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Loops Section Overview
Suggested Courses

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question