As long as you know that your WML is correct then youonly need know a few things about running ASP with WML. First, removethe file extension .wml and change it to .asp as a normal. You mustthen 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 youcan to add WML tags and ASP scripts. The main thing really differentabout implementing ASP into WML rather than HTML is that you mustremember that any text that is returned from an ASP variable should beplaced between <P> </P> tags before displaying it. Beespecially careful about using components, as many may return HTML backinto the WML code. There will be more about ASP within WML and examplesof this within my next article. |