WML and ASP
Hi, I have been trying to learn wml. It has all been going well, untill I tried to combine asp and wml.
I am using this code. Which works on a Nokia 8310 but not on anything else. no elmulators, no other phone I've tried not even a 8310e. Can anyone tell me whats going on?
the file is saved as a .asp file on a wap enabled server
<% @Language="VBScript" %>
<% response.contenttype="text/vnd.wap.wml" %>
<?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN""http://www.wapforum.org/DTD/wml12.dtd">
<card id="home" title="Hello World">
response.write "Hello World <br/>"
response.write "Todays Date is: " & Date %>
the error I get is 'the page was malformed' XML error - failed parsing document (before or at line1)
I have tried it on there emulators
Nokia Mobile Internet Toolkit 3.1
Ericsson IDE 3.2.1
RE: WML and ASP
Nokia Developer Expert
Try to add an empty space between the quotation marks in the doctype definition line:
...//DTD WML 1.2//EN" "http://www.wa...
sami / Forum Nokia Developer Support