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.

Re: IIS Return HTML not WML by Kristofer

Kristofer
Thu Mar 06 15:45:04 CST 2008

This isn't really an issue with IIS but something related to ASP.NET (IIS
only serves what ASP.NET tell it to serve, ASP.NET extecutes your code, not
IIS).

Anyway, how do you determine that it doesn't return wml? ASP.NET is smart
enough to figure out itself if it should return HTML or WML, based on the
client, so maybe you are using a client that ASP.NET serves HTML to?

--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


"MIguel A Castillo" <miguecasti@hotmail.com> skrev i meddelandet
news:uuzte08fIHA.1212@TK2MSFTNGP05.phx.gbl...
> 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.
>


Re: IIS Return HTML not WML by David

David
Fri Mar 07 04:56:20 CST 2008

Please ask your questions on an ASP.Net newsgroup because your
question is about ASP.Net technology, not IIS.

My question to you is: how is your test client identifying itself to
the ASPX page as supporting and requiring WML?

ASP.Net is a platform which transparently transforms its output
between HTML, WML, etc depending on the announced capabilities of the
client. You should never be trying to force ASPX page to send back
only HTML/WML because it means you are doing it incorrectly.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//



On Mar 6, 12:28=A0pm, "MIguel A Castillo" <migueca...@hotmail.com>
wrote:
> 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=3D"System.Web.UI.MobileControls.MobilePage" Language=3D"=
C#" %>
> <%@ Register TagPrefix=3D"mobile"
> Namespace=3D"System.Web.UI.MobileControls"
> Assembly=3D"System.Web.Mobile"%>
> <mobile:Form runat=3D"server">
> <mobile:Label runat=3D"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=3D"System.Web.UI.MobileControls.MobilePage"
> ContentType=3D"text/vnd.wap.wml"
> %>
>
> Nothing seems to work, I always get back this html:
>
> <html>
> <head>
> <meta http-equiv=3D"Cache-Control" content=3D"max-age=3D0"/>
> </head>
> <p:card>
> <p:do type=3D"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.wapsil=
on.com/, Samsung X450).
>
> thanks.