can not re-direct to mobile page..

Discussion in 'ASP .Net Mobile' started by Carlos, Apr 25, 2008.

  1. Carlos

    Carlos Guest

    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 wonder if the browsecaps section is not well maintained..?
    According to msdn
    (http://msdn2.microsoft.com/en-us/library/fhhycabe(VS.71).aspx)
    I use this code, but it does not work..

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

    }

    Thanks in advance,

    Carlos.
    >
    Carlos, Apr 25, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Zahoor
    Replies:
    1
    Views:
    796
    Darryl L. Pierce
    Nov 15, 2003
  2. =?Utf-8?B?QWxleCBNYWdoZW4=?=

    Non "mobile" controls on Mobile ASPX

    =?Utf-8?B?QWxleCBNYWdoZW4=?=, Aug 17, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    652
    Steven Cheng[MSFT]
    Aug 20, 2007
  3. chen selina
    Replies:
    0
    Views:
    1,257
    chen selina
    Jul 13, 2010
  4. Ryan Malone
    Replies:
    0
    Views:
    155
    Ryan Malone
    Aug 23, 2004
  5. Yaiz
    Replies:
    0
    Views:
    170
Loading...

Share This Page