[lnkForumImage]
TotalShareware - Download Free Software

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


 

Sumantra

8/24/2006 12:26:00 PM

I have two application one web and another mobile. Now from the web i want to
redirect those requests to the mobile application which are coming from the
mobile device. But I have a mobile phone with Opera browser where HTML can be
rendered. From there if I access the application it seems the IsMobileDevive
property is returning false??? But for the WML phones IsMobileDevice is
returning true.
Why it is like that?
1 Answer

sumithpdd

10/11/2006 4:27:00 PM

0


Its because of the changes to the mobile browser and this function
doesnot check the http header properly. So be specific when you are
checking for type of browser eg.
{
if (Request.Browser.Platform == "WinCE")
{
Response.Redirect("~/Mobile/default.aspx");
}
if (Request.Browser["IsMobileDevice"] == "true" )
{
Response.Redirect("~/Mobile/default.aspx");
}
else
{
Response.Redirect("~/Desktop/default.aspx");
}
}



--
sumithpdd
------------------------------------------------------------------------
http://w...
------------------------------------------------------------------------
View this thread: http://w.../message2512436.html