Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_mobile thread: mobile:link ?


Message #1 by "Liu, Jin" <Jin.Liu@t...> on Fri, 21 Jun 2002 15:50:35 +0200
Hi Benny,

In response to some of your questions:

Don't forget that the emmulators aren't designed to run .aspx pages - 
they are designed only to display specific content, for example WML, or 
CHTML. When you request a .aspx page from a machine with .net, IIS (the 
web server) understands the .aspx extension as being a .NET file that 
needs to be run through the ASP.NET runtime. ASP.NET then looks through 
the code in the page and reads the directives at the top to say that it's 
a mobile page, uses the mobile controls that are installed, and basically 
renders appropriate output (WML etc) which is then sent to the client 
device. At no stage does the device see the ASPX code - remember that 
ASP.NET is only running on the server, not the client. 

If a device isn't producing the correct results then this could be for 
one of a number of reasons:

1. the device can't communicate with the web server for some reason
2. the device isn't recognised in the device list in the .NET config files

which brings us to the topic of emmulators. The problem with emmulators 
is that new phones and emmulators come out fairly regularly, so your best 
bet would be to download as many of the older and newer emmulators as 
possible to give your applications a thorough test on many different 
platforms. 

If you are having some trouble getting pages to run on certain devices, 
you might want to look at Chapter 14 in the book, which describes how to 
write adapters for new devices.

Hope that helps,

Chris

---------------------------------------------------------------

> I'm exited going with the examples given in the book asp.net mobile 
controls. Most of them runs!

One thing I noticed is Microsoft changed Mobile:Call control to 
Mobile:PhoneCall control. Mobile:Call will not be supported (run time 
error).

Besides it, I have problem with the control mobile:link when I tried the 
corresponding example (e.g. Hello.aspx in Chapter 7) using Pocket PC 
Emulator. On the Pocket PC Emulator, it is not possible to change 
from "form1" to the second form "welcome", although the text "Say Hello 
World" is appeared as a hyperlink. When I started the Hello.aspx in 
IE6.0, it is no problem. What was wrong on my system? I reinstalled the 
Pocket PC emulator, it seemed the same.
I have Win2k with IIS, MMIT 1.0, eMBedded Visual Tools (Visual Basic 3.0) 
and Pocket PC Emulator installed on my computer.

You given more examples about other kind of emulators for testing aspx-
file. Unfortunately, it was not point out where to find them and how the 
exact names are. It was not an easy task to find them. I tried to 
download the R380s_WAP_Emulator_3.0 from Ericsson. The graphic design 
looks like the same as given in your book. But how could I test my aspx-
applications with it? Do I need to translate the aspx in wml? Could the 
aspx be recognized immediately by the Ericsson-Emulator?

The last question is, which Emulators would you recommend?

Thanks very much for your answer in advance!


Benny




  Return to Index