Click here to Skip to main content
15,888,351 members
Home / Discussions / Mobile
   

Mobile

 
QuestionGUI design in MIDP 2.0 Pin
trioum2-Nov-10 2:52
trioum2-Nov-10 2:52 
Questionsql server connection Pin
mersad002-Nov-10 1:21
mersad002-Nov-10 1:21 
AnswerRe: sql server connection Pin
Stryder_12-Nov-10 3:23
Stryder_12-Nov-10 3:23 
GeneralRe: sql server connection Pin
RaviRanjanKr14-Nov-10 18:26
professionalRaviRanjanKr14-Nov-10 18:26 
Questionrecording phone Pin
2_Raptor_21-Nov-10 22:34
2_Raptor_21-Nov-10 22:34 
Questionhow to handle key events in Pocket Internet Pin
Rahul Chitte26-Oct-10 22:22
Rahul Chitte26-Oct-10 22:22 
QuestionMobile Web Application Pin
Civic0625-Oct-10 16:24
Civic0625-Oct-10 16:24 
AnswerRe: Mobile Web Application Pin
Amimpat8-Nov-10 21:46
Amimpat8-Nov-10 21:46 
Hello

Use standard ASP.NET website project for creating mobile website. Important thing here is to detect request, if it is from mobile device than redirect user to mobile compatible pages instead of standard website.

For accurate and easy mobile device detection use http://51degrees.codeplex.com[^] It is an ASP.NET open source module which detects mobile devices and provides auto redirection to mobile optimized pages when request is coming from mobile device. It makes use of WURFL mobile device database.

Sample web.config configuration for redirecting users to different mobile pages based on MobileDeviceManufacturer property. You can create your own custom rules for redirection based on other mobile properties.


   <redirect firstRequestOnly="false"

              mobileHomePageUrl="~/Mobile/Default.aspx"

              timeout="20"

              devicesFile="~/App_Data/Devices.dat"

              mobilePagesRegex="/(Apple|RIM|Nokia|Mobile)/">

      <locations>

        <location url="~/Apple/Default.aspx">

<add property="MobileDeviceManufacturer" matchExpression="Apple"/>

        </location>

        <location url="~/RIM/Default.aspx">

<add property="MobileDeviceManufacturer" matchExpression="RIM"/>

        </location>

        <location url="~/Nokia/Default.aspx">

<add property="MobileDeviceManufacturer" matchExpression="Nokia"/>

        </location>

      </locations>

    </redirect>

QuestionIphone (Recording Audio) Pin
ShilpiP21-Oct-10 1:16
ShilpiP21-Oct-10 1:16 
Questioncopy iphone4 Pin
vickixwl19-Oct-10 19:59
vickixwl19-Oct-10 19:59 
AnswerRe: copy iphone4 Pin
Richard MacCutchan19-Oct-10 23:30
mveRichard MacCutchan19-Oct-10 23:30 
AnswerRe: copy iphone4 Pin
HimanshuJoshi20-Oct-10 5:56
HimanshuJoshi20-Oct-10 5:56 
QuestionHow accurate are the emulators? Pin
Alexander DiMauro19-Oct-10 15:37
Alexander DiMauro19-Oct-10 15:37 
AnswerRe: How accurate are the emulators? Pin
Peter_in_278019-Oct-10 20:15
professionalPeter_in_278019-Oct-10 20:15 
GeneralRe: How accurate are the emulators? Pin
Magnetomage22-Oct-10 11:47
professionalMagnetomage22-Oct-10 11:47 
AnswerRe: How accurate are the emulators? Pin
ChrisGWilliams21-Oct-10 5:59
ChrisGWilliams21-Oct-10 5:59 
AnswerRe: How accurate are the emulators? Pin
ghle21-Oct-10 19:34
ghle21-Oct-10 19:34 
GeneralRe: How accurate are the emulators? Pin
Alexander DiMauro22-Oct-10 1:44
Alexander DiMauro22-Oct-10 1:44 
GeneralRe: How accurate are the emulators? Pin
Lee Sudduth22-Oct-10 3:03
Lee Sudduth22-Oct-10 3:03 
GeneralRe: How accurate are the emulators? Pin
Alexander DiMauro22-Oct-10 3:53
Alexander DiMauro22-Oct-10 3:53 
AnswerRe: How accurate are the emulators? Pin
sjewrd21-Oct-10 20:18
sjewrd21-Oct-10 20:18 
JokeRe: How accurate are the emulators? Pin
Peter_in_278021-Oct-10 20:24
professionalPeter_in_278021-Oct-10 20:24 
JokeRe: How accurate are the emulators? Pin
ghle21-Oct-10 20:39
ghle21-Oct-10 20:39 
AnswerRe: How accurate are the emulators? Pin
NotDadsW4122-Oct-10 3:58
NotDadsW4122-Oct-10 3:58 
GeneralRe: How accurate are the emulators? Pin
Alexander DiMauro22-Oct-10 4:16
Alexander DiMauro22-Oct-10 4:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.