关于ASP,WML的问题
刚学习WAP网站设计,迷糊,请指教,代码如下
<script language= "javascript "> <%Response.ContentType= "text/vnd.wap.wml%> <?xml
version= "1.0 "?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN " "../dtd/wml_1.1.xml ">
<wml>
<card>
<%
const adOpenKeyset=1
const adLockOptimistic=3
response.write( " <p> ffffffffffff </p> ")
set conn=server.createobject( "adodb.connection ")
conn.open "driver={sql server};server=192.168.12.61;uid=sa;pwd=www;database=wkh "
response.write( " <p> aaaaaf </p> ")
%>
</card>
</wml>
然后用openwave就报错500,求了解的指教
------解决方案-------------------- <%Response.ContentType= "text/vnd.wap.wml[这里就少了个 "号了]%> <?xml
<%Response.ContentType= "text/vnd.wap.wml "%> <?xml
要测试代码可运行,Response.ContentType = "text/html ",如果没有500错误,就可以改成text/vnd.wap.wml
模拟器用Opera,这个检测标签严格些