C
Carlos
Hi all,
I was just trying to execute sample code to redirect the
output to a mobile page from a Pocket PC but it did not work.
I tried from the root aspx file (page_load event):
if (Request.Browser["IsMobileDevice"] == "true" )
Response.Redirect("indexm.htm");
else
Response.Redirect("indexd.htm");
I also have
<configuration>
<system.web>
<httpRuntime
useFullyQualifiedRedirectUrl="true" />
</system.web>
</configuration>
in the web.config file.
The desktop page is always displayed. but the mobile is not from Pocket PC
How can I trace it and determine the mobile device? Thanks,
Carlos.
I was just trying to execute sample code to redirect the
output to a mobile page from a Pocket PC but it did not work.
I tried from the root aspx file (page_load event):
if (Request.Browser["IsMobileDevice"] == "true" )
Response.Redirect("indexm.htm");
else
Response.Redirect("indexd.htm");
I also have
<configuration>
<system.web>
<httpRuntime
useFullyQualifiedRedirectUrl="true" />
</system.web>
</configuration>
in the web.config file.
The desktop page is always displayed. but the mobile is not from Pocket PC
How can I trace it and determine the mobile device? Thanks,
Carlos.