Hi,
Using IIS 6.0 on Win3k I'm trying to get a simple .aspx file to return wml.
Here's the default.aspx file from my server:
<%@ Page Inherits="System.Web.UI.MobileControls.MobilePage" Language="C#" %>
<%@ Register TagPrefix="mobile"
Namespace="System.Web.UI.MobileControls"
Assembly="System.Web.Mobile"%>
<mobile:Form runat="server">
<mobile:Label runat="server">
Hello, world!
</mobile:Label>
</Mobile:Form>
I've set all the .wml mime types in IIS, and have .NET Frame work 2
.0installed. I've even tried explictly setting the mime type in the
file like so:
<%@ Page
Inherits="System.Web.UI.MobileControls.MobilePage"
ContentType="text/vnd.wap.wml"
%>
Nothing seems to work, I always get back this html:
<html>
<head>
<meta http-equiv="Cache-Control" content="max-age=0"/>
</head>
<p:card>
<p:do type="accept">
<p:noop/>
</p:do>
<p>Hello, world!</p>
</p:card>
</html>
So the page only works with phone/emulators which can use html (i.e.
Openwave, Nokia 6320) but not with those that can't (i.e.
http://www.wapsilon.com/ , Samsung X450).
thanks.