First open IIS, and then add the registration file type in the default website property-HTTP header-mmie ing-file type:
CopyCode The Code is as follows: associated extension MIME type
WML text/vnd. WAP. WML
Wmlc application/vnd. WAP. wmlc
Wbmp image/vnd. WAP. wbmp
Wmlsc application/vnd. WAP. wmlscriptc
WMLS text/vnd. WAP. WMLScript
WSC application/vnd. WAP/wmlscriptc
Now you can add WML files on your site. You can use a mobile phone simulator or Opera Browser to browse. If your host is released, you can use your mobile phone to browse your website.
If you use ASP to generate WML, you must include the following sentence:Copy codeThe Code is as follows: <% response. contenttype = "text/vnd. WAP. WML" %>
example: test. ASP copy Code the code is as follows: <% @ Language = VBScript %>
<% response. contenttype = "text/vnd. WAP. WML "%>
"http://www.wapforum.org/dtd/wml_1.1.xml">
just a test on my WAP site!