can not re-direct to mobile pages

Discussion in 'ASP.NET 2.0' started by Csanin, Apr 25, 2008.

  1. To whom it may concern,

    when I browse to my home page
    from my Pocket PC (AT&T tilt using Windows Mobile 6.0)
    I do not get re-directed to my mobile page.

    I am able to do it at home with my server. I wonder if
    your browsecaps section in the machine.config
    of your server does not support Pocket IE..

    According to msdn
    (http://msdn2.microsoft.com/en-us/library/fhhycabe(VS.71).aspx), I use this code, but
    it does not work on your server:

    public void Page_Load(Object sender, EventArgs e)
    {
    if (Request.Browser["IsMobileDevice"] == "true" )
    {
    Response.Redirect("MobileDefault.aspx");
    }
    else
    {
    Response.Redirect("DesktopDefault.aspx");
    }

    }

    Thanks in advance,

    Carlos.
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    The browserCap we have is the one that came w/ Windows server.

    MSFT has stopped releasing new version of browser cap.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page