How to redirect mobile page between mobile phones and Pocket PC

Last post 12-03-2007 3:36 AM by umitgunden. 5 replies.

Sort Posts:

  • How to redirect mobile page between mobile phones and Pocket PC

    06-02-2004, 1:08 PM
    • Loading...
    • hikaru7
    • Joined on 04-01-2004, 6:35 AM
    • Posts 5
    Please help,
    can i redirect different mobile page to pocket pc?? coz some of the old mobile phones cannot support the mobile control checkbox. i want to redirect the page to Pocket PC which can support it.

    Many thanx.
  • Re: How to redirect mobile page between mobile phones and Pocket PC

    06-03-2004, 5:46 AM
    • Loading...
    • MobileMagic
    • Joined on 06-03-2004, 5:36 AM
    • Chennai, India
    • Posts 121
    Hi,

    Your question is not clear can u elobrate it further..

    Vinodh Kumar

    Microsoft MVP|Author|Arch

    www.dotnetforce.com

    Force Behind .NET





    _________________________________________

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: How to redirect mobile page between mobile phones and Pocket PC

    06-09-2004, 6:59 AM
    • Loading...
    • hikaru7
    • Joined on 04-01-2004, 6:35 AM
    • Posts 5
    Actually, my question is how to redirect different mobile web page according to different mobile devices when user browse my mobile web site.

    E.g.
    if i goto url http://www.mymobilesite.com

    using PocketPC, it will redirect to http://www.mymobile.com/pocketpc/

    using normal phone.E.g. motorola T720 hand phone , it will redirect to http://www.mymobile.com/motorola/


    What is the device specific for conventional mobile phone and PocketPC or PDA??
  • Re: How to redirect mobile page between mobile phones and Pocket PC

    06-09-2004, 7:21 AM
    • Loading...
    • MobileMagic
    • Joined on 06-03-2004, 5:36 AM
    • Chennai, India
    • Posts 121
    Hi,

    U need to check the Client Information from Request.Browser.Platform and redirectly accordingly.
    Vinodh Kumar

    Microsoft MVP|Author|Arch

    www.dotnetforce.com

    Force Behind .NET





    _________________________________________

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: How to redirect mobile page between mobile phones and Pocket PC

    12-03-2007, 3:33 AM
    • Loading...
    • umitgunden
    • Joined on 12-03-2007, 3:29 AM
    • Posts 2

    hi

    u can use these codes to redirect a page to an ASP.NET Mobile Web Page .

    http://msdn2.microsoft.com/en-us/library/fhhycabe.aspx


    There are some problems here.

    <script runat="server" language="c#">
        public void Page_Load(Object sender, EventArgs e)
        {
            if (Request.Browser["IsMobileDevice"] == "true" )
            {
                Response.Redirect("MobileDefault.aspx");
            }
            else
            {
                Response.Redirect("DesktopDefault.aspx");
            }
        }
    </script>

    <configuration>
      <system.web>
        <httpRuntime useFullyQualifiedRedirectUrl = "true" />
      </system.web>
    </configuration>

    response.redirect code doesn't work at this code.
    To solve this problem u must delete "<httpRuntime useFullyQualifiedRedirectUrl = "true" />" this code from web.config file.
    if u add this , it doesn't work.
    (I know that Microsoft says add this code to web.config file.But if u add this,there is a problem with redirecting.)

    And the second problem;
    This code doesn't work at some of the mobile phones.

    So u have to change the
    (
            <identification>
                <capability name="majorversion" match="^[5-9]" />
            </identification>
    )
    majorversion in the file.

    change  5-9 to 4-9

    <capability name="majorversion" match="^[4-9]" />


    U can find the file to change in "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG"
    this path.

    Umit

  • Re: How to redirect mobile page between mobile phones and Pocket PC

    12-03-2007, 3:36 AM
    • Loading...
    • umitgunden
    • Joined on 12-03-2007, 3:29 AM
    • Posts 2

    there are some examples about this subject.

    http://www.pluralsight.com/blogs/jimw/archive/2007/10/22/48823.aspx

    http://msdn2.microsoft.com/en-us/library/fhhycabe.aspx

Page 1 of 1 (6 items)
Microsoft Communities
Page view counter