经典论坛's Archiver

mygqx 发表于 2008-7-3 15:28

请教个问题

[code]<!--#include file="conn.asp"-->
<!--#include file="inc/function.asp"-->
<!--#include file="wapclass.asp"-->
<%
Dim wap  
set wap = New wapclass
wap.cache = false
wap.wmlhead()   

wap.wmlcard "main","产品专页",0,"","left","wrap"

dim id
id=trim(request("id"))
If id="" or( not isnumeric(id) )then
response.write "cuowu"
response.end
end if
dim rs,sql,IREcordsshown,ipagecurrent,iPageCount
set rs=server.CreateObject("adodb.recordset")
sql="select * from yixiang_productshow where flag=1 and id="&id&""
rs.open sql,cn,1,3
if rs.eof then
else

%>

<p align="left" style="color:#00923F ;margin:0 0 0 0; font-size:x-small">==<%=wap.unicode(rs("cpmc"))%>==
</p>
<p style="color:#000000;margin:0 0 0 0;">
<%=wap.unicode("【产品基本信息】")%>
</p>
<P style="color:#009933"><%=wap.unicode("产品名称:")%><a href="www." style="color:#000000"><%=wap.unicode(rs("cpmc"))%></a></P>
<%
end if
%>
<br/>



<%wap.wmlend(0)

set wap=nothing
%>
[/code]


为啥在模拟器上能正常显示,在WAP1.1上显示“内容格式错误呢”“

mygqx 发表于 2008-7-3 15:46

哎 没人帮忙啊 我自己再看看吧

总感觉是没有问题的,但是测试就是不通过,不论wap 1.1 还是 2.0 都应该能显示啊!~

郁闷中

请高手帮忙

[[i] 本帖最后由 mygqx 于 2008-7-3 16:16 编辑 [/i]]

mygqx 发表于 2008-7-3 16:19

搞定了 是那个P的大小写问题,晕死

页: [1]



Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.