Solved

Mobile access of web site

Posted on 2011-03-15
4
294 Views
Last Modified: 2013-12-27
Hi,

I have a web site to which I would like to provide access from mobile phones. I need to detect if a mobile phone is accessing the site and then redirekt to a part of the site specially designed for that.

How can I detect if a mobile phone is accessing the site?

Is there a way to determine the identity of the mobile phone in order to automatically redirekt to a special page (including login)?

Best regards
RTSol
0
Comment
Question by:RTSol
  • 2
  • 2
4 Comments
 
LVL 25

Expert Comment

by:RobMobility
ID: 35136514
Hi,

Every browser sends its user agent and it is this that reports what type of browser (i.e. Internet Explorer, BlackBerry etc.)

Various code is available for detecting different mobile browsers - it depends on your development environment. Here are some examples:

http://detectmobilebrowsers.mobi/

http://www.russellbeattie.com/blog/mobile-browser-detection-in-php

http://forums.macrumors.com/showthread.php?t=205417

Hope this helps.

RobMobility.
0
 

Author Comment

by:RTSol
ID: 35136532
Hi,

Thanks for the reply - now I know thats its possible. However, I work in dotnet and php is realy not my strong suit. If you have something targeting C# in dotnet I would really be greatful.

Thanks!
RTSol
0
 
LVL 25

Accepted Solution

by:
RobMobility earned 500 total points
ID: 35136745
Hi,

Try this:

http://www.codeproject.com/KB/aspnet/mobiledetect.aspx

Regards,


RobMobility.
0
 

Author Closing Comment

by:RTSol
ID: 35136758
Thanks - I will try that out.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

830 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