As long as you know that your WML is correct then you only need know a few things about running ASP with WML. First, remove the file extension .wml and change it to .asp as a normal. You must then add the following code to the very top of the page:
<% Response.ContentType = "text/vnd.wap.wml" %>
The above will add the specific MIME type to the ASP file and now you can to add WML tags and ASP scripts. The main thing really different about implementing ASP into WML rather than HTML is that you must remember that any text that is returned from an ASP variable should be placed between
tags before displaying it. Be especially careful about using components, as many may return HTML back into the WML code. There will be more about ASP within WML and examples of this within my next article.
blog comments powered by Disqus