[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.mobile

can not re-direct to mobile page..

Carlos

4/25/2008 5:43:00 PM

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/librar...(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.
>