473,799 Members | 3,267 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Browse r["IsMobileDevice "] == "true" )
Response.Redire ct("indexm.htm" );
else
Response.Redire ct("indexd.htm" );

I also have

<configuratio n>
<system.web>
<httpRuntime
useFullyQualifi edRedirectUrl=" 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 4583
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*****@earthl ink.net> wrote in message
news:#z******** ******@TK2MSFTN GP15.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.Browse r["IsMobileDevice "] == "true" )
Response.Redire ct("indexm.htm" );
else
Response.Redire ct("indexd.htm" );

I also have

<configuratio n>
<system.web>
<httpRuntime
useFullyQualifi edRedirectUrl=" 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*****@earthl ink.net> wrote in message
news:%2******** ********@TK2MSF TNGP15.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.Browse r["IsMobileDevice "] == "true" )
| Response.Redire ct("indexm.htm" );
| else
| Response.Redire ct("indexd.htm" );
|
| I also have
|
| <configuratio n>
| <system.web>
| <httpRuntime
| useFullyQualifi edRedirectUrl=" 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******** *****@TK2MSFTNG P12.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*****@earthl ink.net> wrote in message
news:%2******** ********@TK2MSF TNGP15.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.Browse r["IsMobileDevice "] == "true" )
| Response.Redire ct("indexm.htm" );
| else
| Response.Redire ct("indexd.htm" );
|
| I also have
|
| <configuratio n>
| <system.web>
| <httpRuntime
| useFullyQualifi edRedirectUrl=" 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
6109
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 redirect in the html. I've looked for information about this in usenet archives, but to no avail. Thanks very much for any help in advance!
1
1812
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" name="adAuthCookie" timeout="60" path="/" > </forms> </authentication> The application did success to redirect to login page, but it cannot redirect back to desire page which I specify in URL. What's wrong with my
8
24283
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 been sent like If response.IsSentHttpHeader then ....
0
1772
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 Mobile Internet Toolkit to be installed over .NET Framework 1.0. Is this Toolkit required when using ..NET Framework 1.1? At this moment my research indicate that MMIT is an integral part of .NET 1.1 and DOES NOT to be installed. Can anyone confirm...
1
6645
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 Express Edition x86: Component Microsoft SQL Server 2005 Express Edition x86 returned an unexpected value. ***EndOfSession***? Microsoft SQL Server 2005 Express Edition x86: Component Microsoft SQL Server 2005 Express Edition x86 returned an...
3
8182
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 exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
0
1962
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 2003 2nd edition. If I use the back button, more often than not I will get an HttpException saying that the validation of viewstate MAC failed. If I change the code to do a server.transfer I will never get this problem. Is this a bug in PIE? I...
1
2468
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 http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Order Record</title> <meta name="Microsoft Border" content="tlb, default"> </head>
1
3086
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 to my mobile home page. Thank you.
0
9688
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9546
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10490
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9078
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7570
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4146
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.