[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.mobile

Using Mobile Browsers emulators

=?iso-8859-1?Q?=D3scar_=C1lavarez?=

4/18/2002 11:11:00 AM

Hi everybody,

I have been trying to see .aspx pages in different Mobile
Browsers Emulators such as M3Gate and WinWap. And I
haven´t been able to get the content. I get message like
this: 'Unsupported Conten-Type: text/html charset=utf-8'.
It looks as if .Net Framework was not able to see the
emulators as Mobile Devices and thus the page is not
rendered to WML. On the other hand, it works with the
Mobile Microsoft Explorer. Has anyone had the same
problem?, Do you know which is the reason and how to solve
it?. The .aspx page should be seen in any Mobile Explorer
Emulator.

Best Regards and thanks in advance

Óscar Álvarez
2 Answers

AndyCW

4/19/2002 12:19:00 PM

0

MMIT supports 90+ devices in V1.0, including a number of different
emulators. You can find the full list at
http://msdn.microsoft.com/vstudio/device/mitd... . Unfortunately,
M3Gate and WinWap are not included.

When MMIT receives a HTTP request from an unrecognized device, it classifies
it as an unknown HTML device, so sends it HTML. This is why the WML browsers
are reporting 'Unsupported Content-Type'.

If you want, you can edit the machine.config file in the \{windows
dir}\Microsoft.Net\Framework\{version}\Config directory. Deep inside that
file you find the definitions of all the devices that are supported. Be
careful editing this though. To get MMIT to recognize a device, you have to
know the User-Agent string the browser uses to identify it, and then put
definitioninto this file for that user-agent.

Putting the following into machine.config is sufficient to get WML sent to
WinWAP:

<!-- WinWap emulator -->
<case
match="WinWAP.*">
browser="WinWAP"
preferredRenderingType="text/vnd.wap.wml"
preferredImageMime="image/vnd.wap.wbmp"
</case>

However, this is only the start! These settings will not guarantee optimal
layout on a WinWAP browser. There are loads of other settings you can add
that describe whether, for example, the browser always inserts a break after
an input box. MMIT needs to know this stuff to ensure that presentataion is
optimal on a given device.

If you want to get into this in more detail, I mention the WinWAP, and
describe how to support emulators and new handsets in my book 'Building
.NET Applications for Mobile Devices' (Microsoft Press).

- Andy Wigley
Principal Technologist, Content Master Ltd
<http://www.contentmast...



(Andres Sanabria)

4/27/2002 10:20:00 PM

0