By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,246 Members | 2,170 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,246 IT Pros & Developers. It's quick & easy.

cannot redirect to mobile page

P: n/a
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.
Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
continued from previous post...

when I trace the page it tells me that the user agent is
indeed Windows CE:PPC;240x320. So.. I do not know
why dows not detect the isMobileDevice condition

Thanks again,

Carlos.

"Carlos" <ch*****@earthlink.net> wrote in message
news:#z**************@TK2MSFTNGP15.phx.gbl...
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.

Nov 19 '05 #2

P: n/a
look at the useragent string the pocket pc is posting. then in
machine.config, check that the <browserCaps> is correctly identifying the
agent string as mobile device.

-- bruce (sqlwork.com)

"Carlos" <ch*****@earthlink.net> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
| 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.
|
|
Nov 19 '05 #3

P: n/a
Thanks Bruce,

it was kind of tricky to understand the browsecaps section in the
machine.config file. I believe that it just
there was a mistake in the IE version that start supporting
mobility. The range was from 5-9, when I changed from 4-9 it worked fine. I
would like to test with other browsers too.

Thanks again.

Carlos.
"bruce barker" <no***********@safeco.com> wrote in message
news:eB*************@TK2MSFTNGP12.phx.gbl...
look at the useragent string the pocket pc is posting. then in
machine.config, check that the <browserCaps> is correctly identifying the
agent string as mobile device.

-- bruce (sqlwork.com)

"Carlos" <ch*****@earthlink.net> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
| 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.
|
|

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.