473,394 Members | 1,770 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

cannot redirect to mobile page

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
3 4547
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Carla | last post by:
Is there a way for my website to redirect handheld and mobile browsers to another set of pages that are optimized for mobile/tiny browsers? I've seen this done but I couldn't find any sign of a...
1
by: Grey | last post by:
I have set the following parameters in web.config to prevent user direct access the web page without user login. <authentication mode="Forms"> <forms loginUrl="Initial/index.aspx"...
8
by: Andreas Klemt | last post by:
Hello, I get this error Message "cannot redirect after http headers have been sent" when I do this response.redirect ("home.aspx") How can I find out with vb.net if already a http header has...
0
by: Wiktor Zychla | last post by:
Hi there, I've just started to dig into mobile ASP.NET and I'd really wish to clarify few things. I have the experience with ASP.NET. 1) Some tutorials mention something called Microsoft...
1
by: Peter | last post by:
I've purchased VS.NET 2005 Standard and have tried to install SQL Server 2005 Express, but get the following error in the error log. Please could someone help me.... Microsoft SQL Server 2005...
3
by: Thomas | last post by:
Hi All, i am getting this error once i submit my page to a payment gateway and when it returns the reponse back. Redirect URI cannot contain newline characters. Description: An unhandled...
0
by: Jeremy Chapman | last post by:
Riddle me this batman: An application has two aspx pages. Each has a button on it that does a response.redirect to the other page. I'm viewing the web app in a ocket pc running windows mobile...
1
by: teenagelcruise | last post by:
hi, i have a problem with my code which is i cannot update and addnew data into the database but i can delete the data.plz give me an idea.this is my code that i wrote. <html> <head> <meta...
1
by: webandwe | last post by:
Hi, Is there a code I can use to redirect a user on a cell phone from one page to another. Basically what I want to do is if a user comes to my website on a cell phone I want to re-direct him...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.