Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Mobile access of web site

Posted on 2011-03-15
4
Medium Priority
?
300 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
This video teaches users how to migrate an existing Wordpress website to a new domain.
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.
Suggested Courses

670 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